From c7b8e24a5468c71c110cf29335a34acc148b1b7c Mon Sep 17 00:00:00 2001 From: donpat1to Date: Sat, 4 Oct 2025 00:50:00 +0200 Subject: [PATCH] excluding builds on subbranches --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb43267..fcce77b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -152,7 +152,7 @@ jobs: set-tag: name: Set Tag Name needs: [detect-project, build] - if: ${{ !failure() && !cancelled() && github.event_name != 'pull_request' }} + #if: ${{ !failure() && !cancelled() && github.event_name != 'pull_request' }} runs-on: ubuntu-latest outputs: tag_name: ${{ steps.set_tag.outputs.tag_name }} @@ -211,11 +211,11 @@ set-tag: docker-build: name: Build and Push Docker Image needs: [detect-project, build, set-tag] - #if: | - # always() && - # needs.detect-project.result == 'success' && - # needs.build.result == 'success' && - # github.event_name != 'pull_request' + if: | + needs.detect-project.result == 'success' && + needs.build.result == 'success' && + needs.set-tag.outputs.should_tag == 'true' && + github.event_name != 'pull_request' runs-on: ubuntu-latest environment: production steps: