Skip to content

Commit 99d9d3c

Browse files
authored
ci: prevent certain actions from running on forks (#2466)
1 parent cd5cbcd commit 99d9d3c

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

.github/workflows/e2e-test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
jobs:
66
e2eTests:
77
if:
8+
github.repository == 'anuraghazra/github-readme-stats' &&
89
github.event_name == 'deployment_status' &&
910
github.event.deployment_status.state == 'success'
1011
name: Perform 2e2 tests

.github/workflows/empty-issues-closer.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
closeEmptyIssuesAndTemplates:
11+
if: github.repository == 'anuraghazra/github-readme-stats'
1112
name: Close empty issues
1213
runs-on: ubuntu-latest
1314
steps:

.github/workflows/label-pr.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44

55
jobs:
66
triage:
7+
if: github.repository == 'anuraghazra/github-readme-stats'
78
runs-on: ubuntu-latest
89
steps:
910
- uses: actions/labeler@v4

.github/workflows/stale-theme-pr-closer.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
closeOldThemePrs:
8+
if: github.repository == 'anuraghazra/github-readme-stats'
89
name: Close stale 'invalid' theme PRs
910
runs-on: ubuntu-latest
1011
strategy:

.github/workflows/top-issues-dashboard.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
showAndLabelTopIssues:
8+
if: github.repository == 'anuraghazra/github-readme-stats'
89
name: Update top issues Dashboard.
910
runs-on: ubuntu-latest
1011
steps:

0 commit comments

Comments
 (0)