From f9f09607b126c0d54d331d61f5835a316a7a12c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Fei?= Date: Tue, 16 Sep 2025 19:15:03 +0200 Subject: [PATCH] ci: avoid triggering a catalog update when we are not pushing on main (#319) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Niccolò Fei --- .github/workflows/bake.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/bake.yml b/.github/workflows/bake.yml index 43453348..68d15ad8 100644 --- a/.github/workflows/bake.yml +++ b/.github/workflows/bake.yml @@ -58,6 +58,9 @@ jobs: runs-on: ubuntu-24.04 permissions: contents: write + if: | + github.ref == 'refs/heads/main' && + ( github.event.inputs.environment == 'production' || github.event_name == 'schedule' ) steps: - name: Repository Dispatch uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3