Skip to content

Commit d2335b2

Browse files
committed
kjasdhka
1 parent a4c8fbe commit d2335b2

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/promote-branch.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ jobs:
3737
echo "promotion-type=${{ inputs.promotion-type }}"
3838
echo "${{ github.ref_name }}"
3939
- name: 'Check promotion type'
40+
if: ${{ (inputs.promotion-type != 'release') && (inputs.promotion-type != 'preview') }}
4041
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
42+
echo "Invalid promotion type: ${{ inputs.promotion-type }}"
43+
exit 1
4544
- name: 'Check source branch'
45+
if: ${{ (env.isdevelopment-branch == 'false') && (env.is-maintenance-branch == 'false') }}
4646
run: |
47-
if [[ ${{ env.isdevelopment-branch }} == 'false' && ${{ env.is-maintenance-branch }} == 'false' ]]; then
48-
echo "Invalid source branch: ${{ github.ref_name }}"
49-
exit 1
50-
fi
47+
echo "Invalid source branch: ${{ github.ref_name }}"
48+
exit 1

0 commit comments

Comments
 (0)