Compare commits

...

2 Commits

Author SHA1 Message Date
Asher b0fe54ac9b
Merge branch 'main' into jsjoeio-fix-workflows 2022-02-18 14:53:40 -06:00
Joe Previte 754c7484d5
fix: skip docs/npm workflows on forks 2022-02-16 14:52:21 -07:00
2 changed files with 6 additions and 0 deletions

View File

@ -184,6 +184,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
# Reason: forks cannot access secrets and this will always fail
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@ -22,6 +22,9 @@ jobs:
name: Docs preview
runs-on: ubuntu-20.04
environment: CI
# Only run if PR comes from base repo
# Reason: forks cannot access secrets and this will always fail
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1