From 1317ea59eb216f4a0908439f023a24d9392c6b06 Mon Sep 17 00:00:00 2001 From: Daniel Dimitrov <112561988+DanielDimitrov1@users.noreply.github.com> Date: Sun, 25 Aug 2024 17:11:56 +0300 Subject: [PATCH] adding if condition --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a89888ed88..ae8b5b39fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,11 @@ name: Build & push on: - push: - branches: [ main ] + pull_request: + types: [labeled] + tags: ['CI:Build'] + branches: + - master workflow_dispatch: @@ -14,6 +17,7 @@ jobs: push-app-image: runs-on: ubuntu-latest environment: production + if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build') steps: - uses: actions/checkout@v3