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 fa82e17 commit 081475bCopy full SHA for 081475b
.github/workflows/promote-branch.yml
@@ -36,8 +36,15 @@ jobs:
36
echo "is-maintenance-branch=${{ env.is-maintenance-branch }}"
37
echo "promotion-type=${{ inputs.promotion-type }}"
38
echo "${{ github.ref_name }}"
39
+ - name: 'Check promotion type'
40
+ run: |
41
+ if [[ "${{ inputs.promotion-type }} != 'release' && ${{ inputs.promotion-type }} != 'preview'" ]]; then
42
+ echo "Invalid promotion type: ${{ inputs.promotion-type }}"
43
+ exit 1
44
+ fi
45
- name: 'Check source branch'
- if: ${{ !env.is-development-branch }} || ${{ !env.is-maintenance-branch }}
46
run: |
47
+ if [[ "!${{ env.isdevelopment-branch }} || !${{ env.is-maintenance-branch }}" ]]; then
48
echo "Invalid source branch: ${{ github.ref_name }}"
49
exit 1
50
0 commit comments