Skip to content

Commit

Permalink
build: only run job on main repo and not on forks
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Mar 29, 2024
1 parent b6badd1 commit 55abd41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/macos_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
# Define a display name:
name: "Node.js v${{ matrix.NODE_VERSION }}"

# Ensure the job does not run on forks:
if: github.repository == 'stdlib-js/stdlib'

# Define the type of virtual host machine on which to run the job:
runs-on: ${{ matrix.OS }}

Expand Down Expand Up @@ -259,7 +262,7 @@ jobs:
needs: test

# Run this job regardless of the outcome of the prior job:
if: always()
if: success() || failure()

# Set defaults:
defaults:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/windows_test_npm_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
# Define a display name:
name: "Node.js v${{ matrix.NODE_VERSION }}"

# Ensure the job does not run on forks:
if: github.repository == 'stdlib-js/stdlib'

# Define the type of virtual host machine on which to run the job:
runs-on: ${{ matrix.OS }}

Expand Down Expand Up @@ -310,7 +313,7 @@ jobs:
needs: test_npm_install

# Run this job regardless of the outcome of the prior job:
if: always()
if: success() || failure()

# Set defaults:
defaults:
Expand Down

0 comments on commit 55abd41

Please sign in to comment.