From c4093fdeb87fe6a3066f6c6d637129a031802e94 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Mon, 31 Aug 2026 13:14:48 +0200 Subject: [PATCH] ci: cancel ci when pr is merged or closed (#11108) --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 079bfacfe..951c3a9c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ on: - main pull_request: + types: [opened, synchronize, reopened, closed] workflow_dispatch: @@ -26,6 +27,7 @@ env: jobs: lint: + if: github.event.action != 'closed' timeout-minutes: 10 runs-on: ubuntu-latest name: 'Lint: node-latest, ubuntu-latest' @@ -68,6 +70,7 @@ jobs: ./actionlint -color -shellcheck="" changed: + if: github.event.action != 'closed' runs-on: ubuntu-latest name: 'Diff: node-latest, ubuntu-latest' outputs: @@ -95,6 +98,7 @@ jobs: # cannot push a missing tag; changes to the tag inputs must come from a # branch in this repository. playwright-deps-image: + if: github.event.action != 'closed' runs-on: ubuntu-latest name: 'Image: playwright-deps, ubuntu-latest' timeout-minutes: 15 -- 2.51.2