Enable workflow cancelling when a new one is pushed.

This commit is contained in:
dg
2023-05-15 22:59:59 +00:00
parent b7634da310
commit 048dac223f
2 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,10 @@ name: C/C++ CI
on: [push]
concurrency:
group: environment-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build-linux:
runs-on: ubuntu-20.04

View File

@@ -1,5 +1,9 @@
name: Autorelease
concurrency:
group: environment-${{ github.head_ref }}
cancel-in-progress: true
on:
push:
branches: