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 c3bc43c commit 5a4bb28Copy full SHA for 5a4bb28
.github/workflows/promote-branch.yml
@@ -8,7 +8,7 @@ on:
8
options:
9
- 'preview'
10
- 'release'
11
- description: 'Target branch to create.'
+ description: 'Promotion type.'
12
required: true
13
14
permissions:
@@ -37,7 +37,7 @@ jobs:
37
echo "promotion-type=${{ inputs.promotion-type }}"
38
echo "${{ github.ref_name }}"
39
- name: 'Check promotion type'
40
- if: ${{ inputs.promotion-type }} != 'preview' && ${{ inputs.promotion-type }} != 'release'
+ if: "!(${{ inputs.promotion-type }} != 'preview' || ${{ inputs.promotion-type }} != 'release')"
41
run: |
42
echo "Invalid promotion type: ${{ inputs.promotion-type }}"
43
exit 1
0 commit comments