mirror of
https://github.com/curl/curl.git
synced 2026-05-30 03:37:28 +03:00
CI/GHA: cancel outdated CI runs on new PR changes
Avoid letting outdated CI runs continue if a PR receives new changes. Outside a PR we let them continue running by tying the concurrency to the commit hash instead. Also only let one CodeQL or Hacktoberfest job run at a time. Other CI platforms we use have this build in, but GitHub unfortunately neither by default nor with a simple option. This saves CI resources and therefore a little energy. Approved-by: Daniel Stenberg Approved-by: Max Dymond Closes #9533
This commit is contained in:
parent
fda897f5a1
commit
4e6893307b
14 changed files with 62 additions and 23 deletions
5
.github/workflows/codeql-analysis.yml
vendored
5
.github/workflows/codeql-analysis.yml
vendored
|
|
@ -5,8 +5,6 @@
|
|||
name: CodeQL
|
||||
|
||||
on:
|
||||
# Trigger the workflow on push or pull requests, but only for the
|
||||
# master branch
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
|
@ -17,6 +15,9 @@ on:
|
|||
schedule:
|
||||
- cron: '0 0 * * 4'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}
|
||||
|
||||
permissions:
|
||||
security-events: write
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue