github actions: cancel superseded PR build actions (#1030)

When a PR is updated while the build action hasn't finished yet,
the old action is not automatically cancelled. That build is of
very limited usefulness since its results will not be shown and
are not relevant anymore, so it just wastes resources.

This commit fixes that, now an older build will get cancelled.
This commit is contained in:
Dennis Brakhane
2025-01-18 08:15:19 +01:00
committed by GitHub
parent 20dc3e4722
commit 7918369856
+4
View File
@@ -3,6 +3,10 @@ name: Pull Request Verification
on:
pull_request
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
windows: