From 3ad916b31dd5bbf4530f0f05e8f66e06a290285c Mon Sep 17 00:00:00 2001 From: erik pernod Date: Thu, 9 Apr 2026 20:42:39 +0200 Subject: [PATCH] [ci] Change test to launch ci only if flag: pr run ci is on --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 265e228..3c263de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,16 @@ jobs: name: Run on ${{ matrix.os }} with SOFA ${{ matrix.sofa_branch }} if: > github.event_name == 'push' || - contains(github.event.pull_request.labels.*.name, 'pr: run ci') + ( + github.event_name == 'pull_request' && + ( + contains(github.event.pull_request.labels.*.name, 'pr: run ci') && + ( + github.event.action != 'labeled' || + github.event.label.name == 'pr: run ci' + ) + ) + ) runs-on: ${{ matrix.os }} strategy: fail-fast: false