Skip to content

Commit

Permalink
Cancel similar in-progress gh action runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ukd1 committed Mar 22, 2024
1 parent 3cec32f commit 90b901e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
schedule:
- cron: '30 21 * * 0'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Lint & Test
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# test_rails:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 90b901e

Please sign in to comment.