From 702812c35f2d4a996a876f6f175ac8fd53688cbb Mon Sep 17 00:00:00 2001 From: Cristhian Date: Fri, 11 Sep 2026 06:47:00 -0300 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01JPUZks9z3Pi5oxw9GQ9znt --- .gitea/workflows/validate.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/validate.yml b/.gitea/workflows/validate.yml index b9f575f..9b99aee 100644 --- a/.gitea/workflows/validate.yml +++ b/.gitea/workflows/validate.yml @@ -2,7 +2,12 @@ # matches the typed contract in dora-node.yml, and the node's own tests pass. 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: DORA_VERSION: v1.0.1