forked from repo-mirrors/cnpg-postgres-containers
ci: avoid triggering a catalog update when we are not pushing on main (#319)
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
This commit is contained in:
3
.github/workflows/bake.yml
vendored
3
.github/workflows/bake.yml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user