Skip to content

Commit 3335d0a

Browse files
authored
chore(ci): fix when npm job runs (#5440)
1 parent 6d8f30d commit 3335d0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ jobs:
198198
# This environment "npm" requires someone from
199199
# coder/code-server-reviewers to approve the PR before this job runs.
200200
environment: npm
201-
# Only run if PR comes from base repo or on merge request
201+
# Only run if PR comes from base repo or event is not a PR
202202
# Reason: forks cannot access secrets and this will always fail
203-
if: github.event.pull_request.head.repo.full_name == github.repository || github.event.pull_request.merged == true
203+
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
204204
runs-on: ubuntu-latest
205205
steps:
206206
- name: Checkout repo

0 commit comments

Comments
 (0)