Skip to content

Commit d6f8ae1

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

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/markdown_pkg_urls.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: 'Update Markdown stdlib package URLs'
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/markdown_related_packages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
# Define a display name:
4848
name: 'Update related packages section of READMEs'
4949

50+
# Ensure the job does not run on forks:
51+
if: github.repository == 'stdlib-js/stdlib'
52+
5053
# Define the type of virtual host machine:
5154
runs-on: ubuntu-latest
5255

.github/workflows/npm_downloads.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
# Define a display name:
4444
name: 'Retrieve npm Download Counts'
4545

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

0 commit comments

Comments
 (0)