Skip to content

Commit 081475b

Browse files
committed
sadas
1 parent fa82e17 commit 081475b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/promote-branch.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ jobs:
3636
echo "is-maintenance-branch=${{ env.is-maintenance-branch }}"
3737
echo "promotion-type=${{ inputs.promotion-type }}"
3838
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
3945
- name: 'Check source branch'
40-
if: ${{ !env.is-development-branch }} || ${{ !env.is-maintenance-branch }}
4146
run: |
47+
if [[ "!${{ env.isdevelopment-branch }} || !${{ env.is-maintenance-branch }}" ]]; then
4248
echo "Invalid source branch: ${{ github.ref_name }}"
4349
exit 1
50+
fi

0 commit comments

Comments
 (0)