From 5255f445d3e2ca6e858cf9ea3ae9be533c904a56 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 2 Oct 2024 17:13:24 +0100 Subject: [PATCH] Add concurrency key to publish/preview workflows (#527) --- .github/workflows/preview.yml | 3 +++ .github/workflows/publish.yml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 82016622f..de88eee84 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -7,6 +7,9 @@ on: - synchronize - closed +concurrency: + group: docs + jobs: build-and-preview: if: github.event.action == 'opened' || github.event.action == 'synchronize' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d42c6e60f..94b107e10 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,10 @@ on: - backport-v0.* workflow_dispatch: # manual trigger for testing +concurrency: + group: docs + cancel-in-progress: true + jobs: build-and-deploy: runs-on: ubuntu-latest