From c2d8ea8a5edd8a427d92868f8952e8dea18e7e26 Mon Sep 17 00:00:00 2001 From: Daniel Dimitrov <112561988+DanielDimitrov1@users.noreply.github.com> Date: Sun, 25 Aug 2024 16:16:30 +0300 Subject: [PATCH] Updated build.yml for on_pull req --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb9ff4f5ea..f83cb1ec26 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,10 @@ -name: Build & push - +name: Last on: - push: - branches: [ main ] + pull_request: + types: [labeled] + labels: ['CI:Build'] + branches: + - master workflow_dispatch: @@ -14,6 +16,8 @@ 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