Skip to content

Commit

Permalink
Update skip duplicate jobs in CI (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 authored Jan 15, 2022
1 parent bf8b8ac commit 9334a58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ jobs:
matrix:
python-version: ['3.7', '3.8', '3.9']
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@ on:

jobs:
pre-job:
if: github.repository == 'NCAR/jupyter-forward'
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
uses: fkirc/skip-duplicate-actions@v3.4.1
with:
concurrent_skipping: 'same_content'
skip_after_successful_duplicate: 'false'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
paths_ignore: '["**/docs/**"]'
concurrent_skipping: 'same_content_newer'

build:
needs: pre-job
Expand All @@ -31,10 +29,6 @@ jobs:
matrix:
python-version: ['3.7', '3.8', '3.9']
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
Expand Down

0 comments on commit 9334a58

Please sign in to comment.