Skip to content

Commit f4e4c0f

Browse files
committed
dasd
1 parent 081475b commit f4e4c0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/promote-branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ jobs:
3838
echo "${{ github.ref_name }}"
3939
- name: 'Check promotion type'
4040
run: |
41-
if [[ "${{ inputs.promotion-type }} != 'release' && ${{ inputs.promotion-type }} != 'preview'" ]]; then
41+
if [[ "${{ inputs.promotion-type }} != 'release' || ${{ inputs.promotion-type }} != 'preview'" ]]; then
4242
echo "Invalid promotion type: ${{ inputs.promotion-type }}"
4343
exit 1
4444
fi
4545
- name: 'Check source branch'
4646
run: |
47-
if [[ "!${{ env.isdevelopment-branch }} || !${{ env.is-maintenance-branch }}" ]]; then
47+
if [[ "${{ env.isdevelopment-branch }} == 'false' && ${{ env.is-maintenance-branch }} == 'false'" ]]; then
4848
echo "Invalid source branch: ${{ github.ref_name }}"
4949
exit 1
5050
fi

0 commit comments

Comments
 (0)