[Workflow: Build] Fix skip conditions

This commit is contained in:
arttu
2024-08-05 11:35:55 +03:00
parent 34d9acb501
commit df6eb3bcb5
+2 -2
View File
@@ -15,7 +15,7 @@ env:
jobs:
push_backend:
if: github.event.label.name == 'push' && !contains(github.event.head_commit.message, '#no-deploy')
if: ${{ github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '#no-deploy')) }}
runs-on: ubuntu-latest
permissions:
packages: write
@@ -48,7 +48,7 @@ jobs:
docker tag $BACKEND_IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
push_frontend:
if: github.event.label.name == 'push' && !contains(github.event.head_commit.message, '#no-deploy')
if: ${{ github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '#no-deploy')) }}
runs-on: ubuntu-latest
permissions:
packages: write