From b57824c08438301d48c79c29aac71f046ef31cb5 Mon Sep 17 00:00:00 2001 From: Dan Pock Date: Thu, 5 Sep 2024 10:42:15 -0400 Subject: [PATCH] Adjust CI job for concurency This change prevents redundant Actions running on a PR. Given a situation where a PR has been created and gets updates pushed. Each update will trigger a new CI workflow to run, however only the most recent one is actually valid for the current state. As such this change will prevent the redundant jobs from running, cancelling them without error, and will allow the correct workflow to run sooner. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 333db1dbb9..a7f874f32f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,10 @@ name: CI on: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read