File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
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
4242 echo "Invalid promotion type: ${{ inputs.promotion-type }}"
4343 exit 1
44- fi
4544 - name : ' Check source branch'
45+ if : ${{ !env.is-development-branch }} || ${{ !env.is-maintenance-branch }}
4646 run : |
47- if [[ "!${{ env.is-development-branch }} || !${{ env.is-maintenance-branch }}" ]]; then
48- echo "Source branch is required."
47+ echo "Invalid source branch: ${{ github.ref_name }}"
4948 exit 1
50- fi
You can’t perform that action at this time.
0 commit comments