chore(workflows): Avoid running workflows in forked repositories (#31877)

Signed-off-by: Fran Mulero <francisco-jose.mulero@broadcom.com>
This commit is contained in:
Fran Mulero
2025-02-12 13:45:22 +01:00
committed by GitHub
parent 5207914ce2
commit 596adcafc3

View File

@@ -106,7 +106,7 @@ jobs:
upload:
name: Re-upload index.yaml
needs: [validation-check, integrity-check]
if: ${{ always() && (needs.validation-check.outputs.result != 'ok' || needs.integrity-check.outputs.result != 'ok') }}
if: ${{ always() && github.repository_owner == 'bitnami' && (needs.validation-check.outputs.result != 'ok' || needs.integrity-check.outputs.result != 'ok') }}
uses: bitnami/charts/.github/workflows/sync-chart-cloudflare-index.yml@index
secrets: inherit
permissions:
@@ -114,7 +114,7 @@ jobs:
notify:
name: Send notification
needs: [validation-check, integrity-check]
if: ${{ always() && (needs.validation-check.outputs.result != 'ok' || needs.integrity-check.outputs.result != 'ok') }}
if: ${{ always() && github.repository_owner == 'bitnami' && (needs.validation-check.outputs.result != 'ok' || needs.integrity-check.outputs.result != 'ok') }}
uses: bitnami/support/.github/workflows/gchat-notification.yml@main
with:
workflow: ${{ github.workflow }}