Skip to content

Commit bfb1af1

Browse files
authored
Merge pull request #285 from eccenca/bugfix/setTargetBranch-CMEM-6662
Fix command to create name of target branch
2 parents 32047c0 + 21c934f commit bfb1af1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/create-release-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
branchname=$(git describe --all --exact-match | sed 's=heads/==')
3030
echo "Dispatched on $branchname"
3131
if [[ ! "$branchname" =~ ^(develop|next|legacy)$ ]]; then echo "Branch $branchname is not allowed to dispatch this action on, use it only on develop, next and legacy." && false; fi
32-
echo "targetbranch=(echo $branchname | sed 's=^develop$=main=')" >> $GITHUB_OUTPUT
32+
echo "targetbranch=$(echo $branchname | sed 's=^develop$=main=')" >> $GITHUB_OUTPUT
3333
- name: Update package.json with new release candidate version
3434
id: create-version
3535
run: |

.github/workflows/publish-final-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
echo "You started it on '${{ steps.branch-name.outputs.current_branch }}'."
3535
exit 1
3636
fi
37-
echo "targetbranch=(echo ${{ steps.branch-name.outputs.current_branch }} | sed 's=^main$=develop=')" >> $GITHUB_OUTPUT
37+
echo "targetbranch=$(echo ${{ steps.branch-name.outputs.current_branch }} | sed 's=^main$=develop=')" >> $GITHUB_OUTPUT
3838
- uses: actions/checkout@main
3939
- name: Initialize mandatory git config
4040
# @see https://github.community/t/how-do-i-get-gh-username-based-on-actions-events/17882

0 commit comments

Comments
 (0)