From 10bbd414677ac1dc3c21726c028a16b6e1da24e6 Mon Sep 17 00:00:00 2001 From: arttu Date: Sat, 3 Aug 2024 14:54:54 +0300 Subject: [PATCH] [Workflow: Build] Deploy skipping only checked for push event, plus requires hashtag #no-deploy --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2af0b50b..50476e00 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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