Skip to content

Commit d53bd4b

Browse files
committed
replace branch name later so the process goal is better readable
1 parent 21e931c commit d53bd4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
- name: Check and save dispatched branch
2727
id: dispatched-branch
2828
run: |
29-
branchname=$(git describe --all --exact-match | sed 's=heads/==' | sed 's=^develop$=main=')
29+
branchname=$(git describe --all --exact-match | sed 's=heads/==')
3030
echo "Dispatched on $branchname"
3131
if [[ ! "$branchname" =~ ^(main|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=$branchname" >> $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: |

0 commit comments

Comments
 (0)