From 0c01cf146d8aa499295e26458190741f6b76185a Mon Sep 17 00:00:00 2001 From: Steven K Date: Mon, 1 Jul 2024 21:03:10 -0700 Subject: [PATCH] Implement concurrency rules - remove old cancel Signed-off-by: Steven K --- .github/workflows/main.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f7c40d..f15fb38 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,15 +7,11 @@ on: schedule: - cron: '0 1 * * 5' -jobs: - cancel: - name: Canceling Outstanding Jobs - runs-on: ubuntu-latest - steps: - - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ github.token }} +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true +jobs: outdated: name: Outdated packages runs-on: ubuntu-latest @@ -219,7 +215,7 @@ jobs: name: Release if: ${{ github.event_name != 'schedule' }} runs-on: ubuntu-latest - needs: ['cancel', 'outdated', 'black', 'pre-commit', 'security', 'tests', 'coverage'] + needs: ['outdated', 'black', 'pre-commit', 'security', 'tests', 'coverage'] outputs: bumped: ${{ steps.release.outputs.bumped }} bump_version: ${{ steps.release.outputs.bump_version }}