From 45e222b3c1cd4e98c78224d22dc3d19a16fb0a65 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 9 Aug 2022 12:31:23 -0500 Subject: [PATCH] chore(ci): run npm job on pr merge (#5429) --- .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 08450d012..49a1e209b 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 + # Only run if PR comes from base repo or on merge request # Reason: forks cannot access secrets and this will always fail - if: github.event.pull_request.head.repo.full_name == github.repository + if: github.event.pull_request.head.repo.full_name == github.repository || github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - name: Checkout repo