From 7c9dfdcc2ab32347e2dbf1fd3b27ca27cb28d091 Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Tue, 7 Apr 2026 08:22:41 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20optim:=20reduce=20duplicate=20CI=20?= =?UTF-8?q?runs=20on=20PR=20branches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci-cd.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 7a46993..b72518f 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -27,6 +27,12 @@ on: branches: - main types: [opened, synchronize, reopened, labeled] + # Only run PR CI if the commit doesn't already have passing branch CI + if: | + github.event_name == 'pull_request' && + (github.event.action == 'opened' || + github.event.action == 'synchronize' || + github.event.action == 'reopened') paths-ignore: - 'README.md' - 'doc/**'