From 035709cd39eb3a9e0d9f88e5de21ae4dfe1f891c Mon Sep 17 00:00:00 2001 From: Florian Dejonckheere Date: Mon, 16 Sep 2024 10:33:16 +0200 Subject: [PATCH] Cancel Github Actions workflow in progress --- .github/workflows/test.yml | 4 ++++ .github/workflows/test_io_uring.yml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7713db34..8c975c17 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,10 @@ jobs: name: >- ${{matrix.os}}, ${{matrix.ruby}} + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{matrix.os}}-${{matrix.ruby}}-libev + cancel-in-progress: true + runs-on: ${{matrix.os}} env: diff --git a/.github/workflows/test_io_uring.yml b/.github/workflows/test_io_uring.yml index 5b111cc2..7b945d22 100644 --- a/.github/workflows/test_io_uring.yml +++ b/.github/workflows/test_io_uring.yml @@ -13,7 +13,12 @@ jobs: name: >- ${{matrix.os}}, ${{matrix.ruby}} + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{matrix.os}}-${{matrix.ruby}}-io_uring + cancel-in-progress: true + runs-on: ${{matrix.os}} + steps: - name: Checkout repository and submodules uses: actions/checkout@v4