Skip to content

Commit 2659818

Browse files
committed
build: only run job on main repo and not on forks
1 parent d6f8ae1 commit 2659818

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/ossf_scorecard.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
# Define a display name:
4545
name: Scorecard analysis
4646

47+
# Ensure the job does not run on forks:
48+
if: github.repository == 'stdlib-js/stdlib'
49+
4750
# Define the type of virtual host machine:
4851
runs-on: ubuntu-latest
4952

.github/workflows/random_examples.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
# Define a display name:
4343
name: 'Run random examples'
4444

45+
# Ensure the job does not run on forks:
46+
if: github.repository == 'stdlib-js/stdlib'
47+
4548
# Define the type of virtual host machine:
4649
runs-on: ubuntu-latest
4750

.github/workflows/standalone_keepalive.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
# Define a display name:
5252
name: 'Keep alive'
5353

54+
# Ensure the job does not run on forks:
55+
if: github.repository == 'stdlib-js/stdlib'
56+
5457
# Define the type of virtual host machine:
5558
runs-on: ubuntu-latest
5659

.github/workflows/track_todos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
# Define a display name:
4343
name: 'Track TODO and FIXME comments'
4444

45+
# Ensure the job does not run on forks:
46+
if: github.repository == 'stdlib-js/stdlib'
47+
4548
# Define the type of virtual host machine:
4649
runs-on: ubuntu-latest
4750

0 commit comments

Comments
 (0)