Abort CodeQL runs on new pushes to a pull-request's branch (#13241)

This commit is contained in:
Alexander Schwartz
2022-07-28 20:30:05 +02:00
committed by GitHub
parent 8470a30446
commit 2a926f3e61
5 changed files with 22 additions and 9 deletions

View File

@@ -17,7 +17,12 @@ on:
- '.github/workflows/codeql-java-analysis.yml'
schedule:
- cron: '0 9 * * 2'
concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: CodeQL analyze