Skip to content

Commit cd524bd

Browse files
committed
wooohhhooo lets go
1 parent c9e463a commit cd524bd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/promote-branch.yml

Lines changed: 3 additions & 5 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
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

0 commit comments

Comments
 (0)