From 5dda64446362d3889e8bf09235bcc23ae2323b20 Mon Sep 17 00:00:00 2001 From: pedro-bento Date: Tue, 6 Oct 2026 20:51:15 +0100 Subject: [PATCH] ci: avoid running the workflow twice on pull requests Restrict the push trigger to master so a branch with an open pull request does not run lint-and-test for both the push and pull_request events. --- .forgejo/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index d51db39..62ec52b 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -15,7 +15,11 @@ name: CI # job-level `if:` and reports the skipped job as a failure instead. on: + # Push runs only on the integration branch. A branch with an open pull + # request would otherwise run this workflow twice: once for the `push` event + # and once for the `pull_request` event. push: + branches: [master] pull_request: jobs: