mirror of
https://github.com/msberends/AMR.git
synced 2026-03-19 17:02:24 +01:00
Limit push trigger to main in code-coverage workflow
Same fix as check-recent: push: branches: '**' caused the workflow to run twice per PR commit (once for push, once for pull_request). Restricting push to [main] ensures coverage runs only once per PR update. https://claude.ai/code/session_01XHWLohiSTdZvCutwD7ag2b
This commit is contained in:
6
.github/workflows/codecovr.yaml
vendored
6
.github/workflows/codecovr.yaml
vendored
@@ -28,10 +28,12 @@
|
|||||||
# ==================================================================== #
|
# ==================================================================== #
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: '**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
# run on every PR update (once per push)
|
||||||
branches: '**'
|
branches: '**'
|
||||||
|
push:
|
||||||
|
# only on main; PR pushes are already covered by pull_request above
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
name: code-coverage
|
name: code-coverage
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user