From 419a53890108ca0c57a33193545f4136a842b915 Mon Sep 17 00:00:00 2001 From: Vladimir Reznichenko Date: Fri, 19 Jul 2024 12:32:10 +0200 Subject: [PATCH] CI: fixes for handling workflow cancellation. (#49709) --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2938587c8e6..9f2a4baa327 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -236,7 +236,7 @@ jobs: 'project-lint-jobs', 'project-test-jobs', ] - if: ${{ always() && github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork }} + if: ${{ !cancelled() && github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork }} steps: - uses: 'actions/checkout@v4' name: 'Checkout' @@ -273,7 +273,7 @@ jobs: 'project-jobs', 'project-test-jobs', ] - if: ${{ always() && needs.project-jobs.outputs.report-jobs != '[]' && ! github.event.pull_request.head.repo.fork }} + if: ${{ !cancelled() && needs.project-jobs.outputs.report-jobs != '[]' && ! github.event.pull_request.head.repo.fork }} strategy: fail-fast: false matrix: