Explorar o código

ci: cancel previous runs when new pushes were made

This is more what is naturally expected. It saves CI time and it often
prevents many already started runs that will fail anyway from running
longer than necessary.

See https://stackoverflow.com/questions/66335225
Philipp Schuster hai 8 meses
pai
achega
9b2532dc6e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      .github/workflows/rust.yml

+ 4 - 0
.github/workflows/rust.yml

@@ -11,6 +11,10 @@ name: "Cargo workspace"
 # Run on every push (tag, branch) and pull_request
 on: [ pull_request, push, workflow_dispatch, merge_group ]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
 env:
   CARGO_TERM_COLOR: always