From b93e18d4d8943c6f0f26b9ed0f9e446dba505830 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 10 Aug 2022 13:34:39 -0500 Subject: [PATCH] chore(ci): fix when npm job runs --- .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 8330ddb05ee5..3cbc3cdd599c 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