workflows.main: cancel existing builds if a push is made
@@ -4,6 +4,11 @@ on:
push:
branches: main
+# cancel existing builds if a push is made
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
