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:
@@ -1,6 +1,9 @@
|
|||||||
name: clang-format
|
name: clang-format
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-format-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-format-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
name: freebsd
|
name: freebsd
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-freebsd-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-freebsd-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
name: linux
|
name: linux
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-linux-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-linux-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ name: "Nix-Tests"
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
branches: [master]
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-nix-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-nix-${{ github.event.pull_request.number || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|||||||
Reference in New Issue
Block a user