From 07cf1d211620c251f811613589415c214b58cf08 Mon Sep 17 00:00:00 2001 From: Juraj Sadel Date: Tue, 25 Aug 2026 21:45:56 +0200 Subject: [PATCH] ci: skip CI on closed and merged PRs --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 501d492f6c4..2d99cfd2f3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,9 +37,13 @@ jobs: # jobs and reusable workflows run. Every other job/workflow in this file # gates on `calculate` outputs. # Draft PRs run no CI at all: every other job needs `calculate`, so skipping - # it skips them too. + # it skips them too. Closed and merged PRs are skipped the same way, since + # label events fire on them as well. calculate: - if: ${{ !github.event.pull_request.draft }} + if: > + !github.event.pull_request.draft && + (github.event_name != 'pull_request' || + github.event.pull_request.state != 'closed') runs-on: ubuntu-latest outputs: labels: ${{ steps.labels.outputs.labels }}