Skip to content

Commit

Permalink
Implement concurrency rules - remove old cancel
Browse files Browse the repository at this point in the history
Signed-off-by: Steven K <[email protected]>
  • Loading branch information
rh0dium committed Jul 2, 2024
1 parent c76c0d2 commit 0c01cf1
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ on:
schedule:
- cron: '0 1 * * 5'

jobs:
cancel:
name: Canceling Outstanding Jobs
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
outdated:
name: Outdated packages
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 0c01cf1

Please sign in to comment.