Skip to content

Commit

Permalink
ci(node-installer): gate job to only run if branch on origin
Browse files Browse the repository at this point in the history
Signed-off-by: Vaughn Dice <[email protected]>
  • Loading branch information
vdice committed Mar 7, 2024
1 parent 132e4c2 commit 167ab94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
publish-node-installer-image:
uses: ./.github/workflows/node-installer.yaml
needs: build
# This action requires use of the GITHUB_TOKEN to publish the image
# By default, PRs from forks don't have access, so we only run when the PR branch is on origin.
if: ${{ ! github.event.pull_request.head.repo.fork }}
with:
ref: ${{ github.ref }}
test:
Expand Down

0 comments on commit 167ab94

Please sign in to comment.