Skip to content

Commit

Permalink
Add concurrency group for codeql workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pierlon committed Sep 14, 2021
1 parent 14a7269 commit dc849e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: CodeQL

# Cancel previous workflow run groups that have not completed.
concurrency:
# Group workflow runs by workflow name, along with the head branch ref of the pull request
# or otherwise the branch or tag ref.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true

on:
push:
# Only run if JS or Python files changed.
Expand Down

0 comments on commit dc849e8

Please sign in to comment.