Переглянути джерело

chore(workflows): Avoid running scheduled workflows on forked repositories (#31863)

Signed-off-by: Fran Mulero <francisco-jose.mulero@broadcom.com>
Fran Mulero 7 місяців тому
батько
коміт
ee055a9fa8

+ 1 - 0
.github/workflows/cd-pipeline.yml

@@ -20,6 +20,7 @@ jobs:
     outputs:
       chart: ${{ steps.get-chart.outputs.chart }}
       result: ${{ steps.get-chart.outputs.result }}
+    if: ${{ github.repository_owner == 'bitnami' }}
     steps:
       - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
         with:

+ 2 - 0
.github/workflows/index-monitor.yml

@@ -16,6 +16,7 @@ jobs:
       contents: read
     outputs:
       result: ${{ steps.integrity-check.outputs.result }}
+    if: ${{ github.repository_owner == 'bitnami' }}
     steps:
       - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
         with:
@@ -62,6 +63,7 @@ jobs:
       contents: read
     outputs:
       result: ${{ steps.validation-check.outputs.result }}
+    if: ${{ github.repository_owner == 'bitnami' }}
     steps:
       - name: Install helm
         run: |

+ 1 - 0
.github/workflows/index-update.yml

@@ -12,6 +12,7 @@ jobs:
       new-releases: ${{ steps.get-new-releases.outputs.new-releases }}
     permissions:
       contents: read
+    if: ${{ github.repository_owner == 'bitnami' }}
     steps:
       - id: checkout-repo
         name: Checkout repo

+ 1 - 0
.github/workflows/push-tag.yml

@@ -20,6 +20,7 @@ jobs:
     outputs:
       chart: ${{ steps.get-chart.outputs.chart }}
       result: ${{ steps.get-chart.outputs.result }}
+    if: ${{ github.repository_owner == 'bitnami' }}
     steps:
       - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
         with:

+ 1 - 0
.github/workflows/retry-failed-releases.yml

@@ -13,6 +13,7 @@ jobs:
     runs-on: ubuntu-latest
     permissions:
       actions: write
+    if: ${{ github.repository_owner == 'bitnami' }}
     steps:
       - name: Retry "CI Pipeline" failed runs in releases PRs
         env: