From 492794d09d27b9a92e8d6c12e82feba0f80b23fe Mon Sep 17 00:00:00 2001 From: David Morrison Date: Fri, 8 Nov 2024 10:55:20 -0800 Subject: [PATCH] ci: cancel old versions of verify workflow --- .github/workflows/k8s_plan.yml | 4 ++++ .github/workflows/verify.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/k8s_plan.yml b/.github/workflows/k8s_plan.yml index bfdab4bb..9638a973 100644 --- a/.github/workflows/k8s_plan.yml +++ b/.github/workflows/k8s_plan.yml @@ -6,6 +6,10 @@ on: # yamllint disable-line rule:truthy paths: - 'k8s/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: plan: runs-on: ubuntu-latest diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 9b7446e3..f5447d68 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -6,6 +6,10 @@ on: # yamllint disable-line rule:truthy - "master" pull_request: {} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: CARGO_INCREMENTAL: 0 SCCACHE_GHA_ENABLED: "true"