fix duplicate CI runs by scoping the push trigger to main
validate / validate (pull_request) Successful in 58m50s
validate / test (pull_request) Successful in 59m57s

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:
2026-09-11 06:47:00 -03:00
co-authored by Claude Opus 5
parent cdc17d2787
commit 702812c35f
+6 -1
View File
@@ -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