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