We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa12cb8 commit 73954bcCopy full SHA for 73954bc
.github/workflows/release-source.yml
@@ -12,6 +12,11 @@ on:
12
type: string
13
description: 'The version to release'
14
required: true
15
+ skip_branch_check:
16
+ description: 'Skip the branch check'
17
+ required: false
18
+ type: boolean
19
+ default: false
20
21
permissions:
22
contents: write
@@ -39,10 +44,10 @@ jobs:
39
44
echo "release_version input is empty"
40
45
exit 1
41
46
fi
42
- - name: check branch
43
- if: ${{ github.ref_name != 'develop' }}
47
+ - name: Check branch
48
+ if: ${{ inputs.skip_branch_check != true && github.ref_name != 'develop' }}
49
run: |
- echo 'only the develop branch can be released.'
50
+ echo 'Branch check is enabled: only the develop branch can be released.'
51
52
# checkout specific repository
53
- name: checkout repository
0 commit comments