File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments