ensure previous ci runs get stopped on new runs

This commit is contained in:
Graham McIntire 2025-06-15 19:39:51 -05:00
parent 5347c7afec
commit 221f7faaa9
No known key found for this signature in database
4 changed files with 20 additions and 0 deletions

View file

@ -5,6 +5,11 @@ on:
- cron: "0 0 * * 0" # Weekly on Sunday at midnight
workflow_dispatch: # Allow manual triggering
# Cancel in-progress runs when a new workflow with the same group is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-dependencies:
name: Rebuild with Latest Dependencies

View file

@ -19,6 +19,11 @@ on:
- cron: "0 0 * * 0" # Run weekly on Sundays at midnight
workflow_dispatch: # Allow manual triggers
# Cancel in-progress runs when a new workflow with the same group is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
scan:
name: Security Scan

View file

@ -10,6 +10,11 @@ on:
pull_request:
branches: ["main"] # adapt branch for project
# Cancel in-progress runs when a new workflow with the same group is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Sets the ENV `MIX_ENV` to `test` for running tests
env:
MIX_ENV: test

View file

@ -8,6 +8,11 @@ on:
schedule:
- cron: "0 0 * * 0" # Weekly at midnight on Sunday
# Cancel in-progress runs when a new workflow with the same group is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
horusec-security:
name: Horusec Security Scan