|
|
|
|
@ -26,9 +26,9 @@ jobs:
@@ -26,9 +26,9 @@ jobs:
|
|
|
|
|
- name: Branch check |
|
|
|
|
if: ${{ github.event.inputs.release_type != 'Dry Run' }} |
|
|
|
|
run: | |
|
|
|
|
if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix" ]]; then |
|
|
|
|
if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix-rc" ]]; then |
|
|
|
|
echo "===================================" |
|
|
|
|
echo "[!] Can only release from the 'rc' or 'hotfix' branches" |
|
|
|
|
echo "[!] Can only release from the 'rc' or 'hotfix-rc' branches" |
|
|
|
|
echo "===================================" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|