Skip to content

Commit 9d7f573

Browse files
committed
build: only run job on main repo and not on forks
1 parent a258a50 commit 9d7f573

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
# Define a display name:
4646
name: 'Analyze'
4747

48+
# Ensure the job does not run on forks:
49+
if: github.repository == 'stdlib-js/stdlib'
50+
4851
# Define the type of virtual host machine.
4952
#
5053
# ## Notes

.github/workflows/lint_random_files.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ jobs:
8282
# Define a display name:
8383
name: 'Lint Random Files'
8484

85+
# Ensure the job does not run on forks:
86+
if: github.repository == 'stdlib-js/stdlib'
87+
8588
# Define the type of virtual host machine:
8689
runs-on: ubuntu-latest
8790

.github/workflows/markdown_links.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: 'Check links'
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)