[Workflow: Build] Deploy skipping only checked for push event, plus requires hashtag #no-deploy

This commit is contained in:
arttu
2024-08-03 14:54:54 +03:00
parent 9203fec531
commit 10bbd41467
+2 -2
View File
@@ -15,7 +15,7 @@ env:
jobs:
push_backend:
if: '!contains(github.event.head_commit.message, "no-deploy")'
if: 'github.event.label.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: '!contains(github.event.head_commit.message, "no-deploy")'
if: 'github.event.label.name == "push" && !contains(github.event.head_commit.message, "#no-deploy")'
runs-on: ubuntu-latest
permissions:
packages: write