fix duplicate CI runs by scoping the push trigger to main
A pull request ran the workflow twice on the same commit, once for the branch push and once for the PR. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JPUZks9z3Pi5oxw9GQ9znt
This commit is contained in:
@@ -2,7 +2,12 @@
|
|||||||
# matches the typed contract in dora-node.yml, and the node's own tests pass.
|
# matches the typed contract in dora-node.yml, and the node's own tests pass.
|
||||||
name: validate
|
name: validate
|
||||||
|
|
||||||
on: [push, pull_request]
|
# A pull request would otherwise run this twice on the same commit: once for
|
||||||
|
# the branch push and once for the PR.
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DORA_VERSION: v1.0.1
|
DORA_VERSION: v1.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user