From 9334a58575d2fb0ec7e327f2461cc8edc1bdef2e Mon Sep 17 00:00:00 2001 From: Anderson Banihirwe Date: Fri, 14 Jan 2022 18:05:29 -0700 Subject: [PATCH] Update skip duplicate jobs in CI (#120) --- .github/workflows/ci-nightly.yaml | 4 ---- .github/workflows/ci.yaml | 12 +++--------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci-nightly.yaml b/.github/workflows/ci-nightly.yaml index eb6f326..cce117a 100644 --- a/.github/workflows/ci-nightly.yaml +++ b/.github/workflows/ci-nightly.yaml @@ -17,10 +17,6 @@ jobs: matrix: python-version: ['3.7', '3.8', '3.9'] steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - uses: actions/checkout@v2 - uses: conda-incubator/setup-miniconda@v2 with: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 045aa88..299308d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 @@ -31,10 +29,6 @@ jobs: matrix: python-version: ['3.7', '3.8', '3.9'] steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - with: - access_token: ${{ github.token }} - uses: actions/checkout@v2 - uses: conda-incubator/setup-miniconda@v2 with: