Skip to content

Commit f9f0960

Browse files
authored
ci: avoid triggering a catalog update when we are not pushing on main (#319)
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
1 parent ca9dbd1 commit f9f0960

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/bake.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858
runs-on: ubuntu-24.04
5959
permissions:
6060
contents: write
61+
if: |
62+
github.ref == 'refs/heads/main' &&
63+
( github.event.inputs.environment == 'production' || github.event_name == 'schedule' )
6164
steps:
6265
- name: Repository Dispatch
6366
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3

0 commit comments

Comments
 (0)