Skip to content

Commit e22cbb7

Browse files
committed
chore(workflows): Run support workflows only in bitnami repos
Signed-off-by: Fran Mulero <[email protected]>
1 parent e59ff0f commit e22cbb7

9 files changed

+9
-1
lines changed

workflows/clossing-issues.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions: {}
1212
jobs:
1313
stale:
1414
runs-on: ubuntu-latest
15+
if: ${{ github.repository_owner == 'bitnami' }}
1516
steps:
1617
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639
1718
with:

workflows/comments.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ concurrency:
1616
group: card-movement-${{ github.event.issue.number }}
1717
jobs:
1818
call-comments-workflow:
19+
if: ${{ github.repository_owner == 'bitnami' }}
1920
uses: bitnami/support/.github/workflows/comment-created.yml@main
2021
secrets: inherit

workflows/move-closed-issues.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ concurrency:
1818
group: card-movement-${{ github.event.issue != null && github.event.issue.number || github.event.number }}
1919
jobs:
2020
call-move-closed-workflow:
21+
if: ${{ github.repository_owner == 'bitnami' }}
2122
uses: bitnami/support/.github/workflows/item-closed.yml@main
2223
secrets: inherit

workflows/pr-review-hack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
review_state: ${{ steps.get-info.outputs.review_state }}
2525
labels: ${{ steps.get-info.outputs.labels }}
2626
resource_url: ${{ steps.get-info.outputs.resource_url }}
27-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
27+
if: ${{ github.repository_owner == 'bitnami' && github.event.workflow_run.conclusion == 'success' }}
2828
steps:
2929
- id: get-info
3030
env:

workflows/pr-reviews-requested.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ concurrency:
1515
group: card-movement-${{ github.event.number }}
1616
jobs:
1717
call-pr-review-workflow:
18+
if: ${{ github.repository_owner == 'bitnami' }}
1819
uses: bitnami/support/.github/workflows/pr-review-requested-sync.yml@main
1920
secrets: inherit

workflows/pr-reviews.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
just-notice:
2020
# This is a dummy workflow that triggers a workflow_run
2121
runs-on: ubuntu-latest
22+
if: ${{ github.repository_owner == 'bitnami' }}
2223
steps:
2324
- run: |
2425
echo "::notice:: Comment on PR #${{ github.event.pull_request.number }}"

workflows/reasign.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ concurrency:
1919
group: card-movement-${{ github.event.issue != null && github.event.issue.number || github.event.number }}
2020
jobs:
2121
call-reasign-workflow:
22+
if: ${{ github.repository_owner == 'bitnami' }}
2223
uses: bitnami/support/.github/workflows/item-labeled.yml@main
2324
secrets: inherit

workflows/stale.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions: {}
1313
jobs:
1414
stale:
1515
runs-on: ubuntu-latest
16+
if: ${{ github.repository_owner == 'bitnami' }}
1617
permissions:
1718
issues: write
1819
pull-requests: write

workflows/triage.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ concurrency:
2222
group: card-movement-${{ github.event.issue != null && github.event.issue.number || github.event.number }}
2323
jobs:
2424
call-triage-workflow:
25+
if: ${{ github.repository_owner == 'bitnami' }}
2526
uses: bitnami/support/.github/workflows/item-opened.yml@main
2627
secrets: inherit

0 commit comments

Comments
 (0)