ci(codeql): add concurrency to cancel unnecessary jobs early

This commit is contained in:
dundargoc
2023-09-10 15:21:56 +02:00
committed by dundargoc
parent b6b70ae199
commit 06d48f6aa6

View File

@ -1,14 +1,15 @@
name: "CodeQL"
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '42 0 * * 0'
workflow_dispatch:
jobs:
analyze:
name: Analyze