ci: do not run CI multiple times on the same branch

Especially for PRs, if the branch is updated
multiple times, only the last commit should be tested.
This commit is contained in:
link2xt
2023-02-23 18:45:55 +00:00
parent 0d7a3fe552
commit 76514178b6

View File

@@ -1,5 +1,11 @@
name: Rust CI
# Cancel previously started workflow runs
# when the branch is updated.
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
push: