Skip to content

Commit ca1ebc0

Browse files
committed
additional check for base branch
1 parent 5bc22a1 commit ca1ebc0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release-source.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ jobs:
5454
run: |
5555
echo 'Branch check is enabled: only the develop branch can be released.'
5656
exit 1
57+
- name: Ensure base branch is main when skip_branch_check is false
58+
if: ${{ inputs.skip_branch_check == false }}
59+
run: |
60+
if [ "${{ inputs.base_branch }}" != "main" ]; then
61+
echo "Error: base_branch must be 'main' when skip_branch_check is false."
62+
exit 1
63+
fi
5764
# checkout specific repository
5865
- name: checkout repository
5966
uses: actions/checkout@v3

0 commit comments

Comments
 (0)