From 425136c2f12fdc6f9e31517e9a05641c188ee537 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 8 Apr 2025 15:41:03 +0200 Subject: [PATCH] Add cancelling of previously run jobs for building conda packages --- .github/workflows/conda-package.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index ba8e20455b..5102ccbdcb 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -26,6 +26,11 @@ jobs: matrix: python: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1 + with: + access_token: ${{ github.token }} + - uses: actions/checkout@v4.2.2 with: fetch-depth: 0 @@ -82,6 +87,11 @@ jobs: matrix: python: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1 + with: + access_token: ${{ github.token }} + - uses: actions/checkout@v4.2.2 with: fetch-depth: 0