From 0a3f322de8066ee59be8c75e3840bfac3de9de21 Mon Sep 17 00:00:00 2001 From: Ranadeep Biswas Date: Fri, 19 Apr 2024 12:34:09 +0200 Subject: [PATCH] forbid concurrent runs for cw and no-std checks --- .github/workflows/cw-check.yml | 4 ++++ .github/workflows/no-std.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/cw-check.yml b/.github/workflows/cw-check.yml index 5fed7bce10..e86cc07686 100644 --- a/.github/workflows/cw-check.yml +++ b/.github/workflows/cw-check.yml @@ -21,6 +21,10 @@ on: - "release/*" - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }} + jobs: cw-check: runs-on: ubuntu-20.04 diff --git a/.github/workflows/no-std.yml b/.github/workflows/no-std.yml index 6e267175f8..c2b06172ee 100644 --- a/.github/workflows/no-std.yml +++ b/.github/workflows/no-std.yml @@ -21,6 +21,10 @@ on: - "release/*" - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }} + jobs: check-no-std-panic-conflict: name: Check no_std panic conflict