From dc130c080b5b771da9e0546a60a9400dd1a87d15 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 8 Aug 2022 16:08:35 -0700 Subject: [PATCH] chore(ci): run npm job on pr merge --- .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 08450d012e28..49a1e209ba57 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