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:
Niccolò Fei
2025-09-16 19:15:03 +02:00
committed by GitHub
parent ca9dbd1769
commit f9f09607b1

View File

@@ -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