Archived
1
0

chore(ci): run npm job on pr merge (#5429)

This commit is contained in:
Joe Previte 2022-08-09 12:31:23 -05:00 committed by GitHub
parent 04ff8c355b
commit 45e222b3c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,9 +198,9 @@ jobs:
# This environment "npm" requires someone from # This environment "npm" requires someone from
# coder/code-server-reviewers to approve the PR before this job runs. # coder/code-server-reviewers to approve the PR before this job runs.
environment: npm 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 # 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 runs-on: ubuntu-latest
steps: steps:
- name: Checkout repo - name: Checkout repo