Skip to content

Commit 55abd41

Browse files
committed
build: only run job on main repo and not on forks
1 parent b6badd1 commit 55abd41

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: .github/workflows/macos_test.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
# Define a display name:
5252
name: "Node.js v${{ matrix.NODE_VERSION }}"
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 on which to run the job:
5558
runs-on: ${{ matrix.OS }}
5659

@@ -259,7 +262,7 @@ jobs:
259262
needs: test
260263

261264
# Run this job regardless of the outcome of the prior job:
262-
if: always()
265+
if: success() || failure()
263266

264267
# Set defaults:
265268
defaults:

Diff for: .github/workflows/windows_test_npm_install.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
# Define a display name:
5252
name: "Node.js v${{ matrix.NODE_VERSION }}"
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 on which to run the job:
5558
runs-on: ${{ matrix.OS }}
5659

@@ -310,7 +313,7 @@ jobs:
310313
needs: test_npm_install
311314

312315
# Run this job regardless of the outcome of the prior job:
313-
if: always()
316+
if: success() || failure()
314317

315318
# Set defaults:
316319
defaults:

0 commit comments

Comments
 (0)