mirror of https://github.com/coder/code-server.git
chore(ci): run npm job on pr merge (#5429)
This commit is contained in:
parent
04ff8c355b
commit
45e222b3c1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue