From 68f85932b8b1a732c8ad53c3dd497bcecdaee529 Mon Sep 17 00:00:00 2001 From: Vaughn Dice Date: Thu, 7 Mar 2024 13:09:15 -0700 Subject: [PATCH] ci(node-installer): gate job to only run if branch on origin Signed-off-by: Vaughn Dice --- .github/workflows/node-installer.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/node-installer.yaml b/.github/workflows/node-installer.yaml index 65176191..689ccfb4 100644 --- a/.github/workflows/node-installer.yaml +++ b/.github/workflows/node-installer.yaml @@ -16,6 +16,9 @@ jobs: contents: read packages: write runs-on: ubuntu-latest + # 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.repository_owner == 'spinkube' }} steps: - uses: actions/checkout@v4