Skip to content

Commit af4f988

Browse files
committed
fix conditional test of source branch
1 parent 06714ff commit af4f988

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
branchname=$(git describe --all --exact-match | sed 's=heads/==')
3030
echo "Dispatched on $branchname"
31-
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
31+
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
3232
echo "targetbranch=(echo $branchname | sed 's=^develop$=main=')" >> $GITHUB_OUTPUT
3333
- name: Update package.json with new release candidate version
3434
id: create-version

0 commit comments

Comments
 (0)