From e4bedc7885ef6fc16b6048e6900de4521c0d2737 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Thu, 16 Jan 2025 12:10:16 +0000 Subject: [PATCH] ci: cancel previously running actions This should prevent CI queue filling up when pushing to the same branch multiple times in a row. --- .github/workflows/nightly.yml | 4 ++++ .github/workflows/stable.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index ae166e8469..923ceddca0 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -7,6 +7,10 @@ env: RUSTDOCFLAGS: "--cfg docsrs" RUSTTOOLCHAIN: "nightly" +concurrency: + group: ${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + jobs: quiche: runs-on: ubuntu-latest diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml index bef6186fac..ad5be639f7 100644 --- a/.github/workflows/stable.yml +++ b/.github/workflows/stable.yml @@ -6,6 +6,10 @@ env: RUSTFLAGS: "-D warnings" RUSTTOOLCHAIN: "stable" +concurrency: + group: ${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + jobs: quiche: runs-on: ubuntu-latest