Skip to content

Commit

Permalink
Build: Skip coverage job on forks
Browse files Browse the repository at this point in the history
I forgot that this needs secrets too, so it always fails.
  • Loading branch information
Krinkle committed Jun 28, 2021
1 parent 9f8f0fb commit da48c66
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/browsers-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
run:
name: BrowserStack
if: github.repository == "qunitjs/qunit" # skip on forks
if: ${{ github.repository == "qunitjs/qunit" }} # skip on forks, needs secret
runs-on: ubuntu-latest
env:
PUPPETEER_DOWNLOAD_PATH: ~/.puppeteer_download
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/browsers-quick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
run:
name: BrowserStack
if: github.repository == "qunitjs/qunit" # skip on forks
if: ${{ github.repository == "qunitjs/qunit" }} # skip on forks, needs secret
runs-on: ubuntu-latest
env:
PUPPETEER_DOWNLOAD_PATH: ~/.puppeteer_download
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
jobs:
run:
name: Code coverage
if: ${{ github.repository == "qunitjs/qunit" }} # skip on forks, needs secret
runs-on: ubuntu-20.04
env:
PUPPETEER_DOWNLOAD_PATH: ~/.puppeteer_download
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
run:
name: Update search index
if: github.repository == "qunitjs/qunit" # skip on forks
if: ${{ github.repository == "qunitjs/qunit" }} # skip on forks, needs secret
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spider-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Includes Python 3
# https://github.com/actions/virtual-environments/blob/ubuntu20/20210318.0/images/linux/Ubuntu2004-README.md
runs-on: ubuntu-latest
if: github.repository == "qunitjs/qunit" # skip on forks
if: ${{ github.repository == "qunitjs/qunit" }} # skip on forks, noisy cron and likely stale main branch
steps:
- uses: actions/checkout@v2
with:
Expand Down

0 comments on commit da48c66

Please sign in to comment.