From 3335d0a456da0ea639b1e010aeb9801a876a9323 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 10 Aug 2022 13:43:28 -0500 Subject: [PATCH] chore(ci): fix when npm job runs (#5440) --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8330ddb05..3cbc3cdd5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -198,9 +198,9 @@ jobs: # This environment "npm" requires someone from # coder/code-server-reviewers to approve the PR before this job runs. environment: npm - # Only run if PR comes from base repo or on merge request + # Only run if PR comes from base repo or event is not a PR # Reason: forks cannot access secrets and this will always fail - if: github.event.pull_request.head.repo.full_name == github.repository || github.event.pull_request.merged == true + if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' runs-on: ubuntu-latest steps: - name: Checkout repo