Minnor fix on check branch

This commit is contained in:
Nick
2023-07-12 09:57:06 +03:00
parent 3b17852d13
commit a3b243a833

View File

@@ -38,9 +38,11 @@ jobs:
steps:
- name: Check branch
run: |
if [ "$GITHUB_REF_NAME" != "main" ]; then
echo "Operation not permitted"
exit 1
if [ "${{ env.DATA_ENV }}" = "prod" ]; then
if [ "$GITHUB_REF_NAME" != "main" ]; then
echo "Operation not permitted"
exit 1
fi
fi
- name: Checkout