ci: only trigger on push to master to avoid duplicate PR runs

These workflows triggered on both push and pull_request with no branch
filter, so every push to a PR branch ran each workflow twice. Restrict the
push trigger to master; pull_request already covers PR branches.
This commit is contained in:
Alex
2026-07-05 10:10:04 +02:00
parent 93cabeefc2
commit fc297a7df3
4 changed files with 13 additions and 3 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
name: clang-format
on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
concurrency:
group: ${{ github.workflow }}-format-${{ github.event.pull_request.number || github.ref }}
+4 -1
View File
@@ -1,6 +1,9 @@
name: freebsd
on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
concurrency:
group: ${{ github.workflow }}-freebsd-${{ github.event.pull_request.number || github.ref }}
+4 -1
View File
@@ -1,6 +1,9 @@
name: linux
on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
concurrency:
group: ${{ github.workflow }}-linux-${{ github.event.pull_request.number || github.ref }}
+1
View File
@@ -2,6 +2,7 @@ name: "Nix-Tests"
on:
pull_request:
push:
branches: [master]
concurrency:
group: ${{ github.workflow }}-nix-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true