Skip to content

Commit

Permalink
[CI] Cancel Workflows After a Branch Update (#17)
Browse files Browse the repository at this point in the history
This helps to reduce computational resource consumption and improves the time due to the fact that the resources are not occupied by an old commit. New processes get directly resources instead of waiting in a queue.

* Cancel workflow when update is pushed for `cmake-multi-platform.yml`
* Cancel workflow when update is pushed for `codeql.yml`
  • Loading branch information
franziska-wegner authored Dec 7, 2023
1 parent 0794412 commit 1fd94e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
schedule:
- cron: '30 2 * * *' # Run once per day

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

env:
QT_VERSION: "6.2.0"

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
schedule:
- cron: '31 8 * * 2'

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

env:
QT_VERSION: "6.2.0"

Expand Down

0 comments on commit 1fd94e7

Please sign in to comment.