From 3fdb3f832af56a4afc38da1691fff3ca6596bf20 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Thu, 9 Jun 2022 00:46:46 +0200 Subject: Cancel running workflows automatically on PR update (#31044) * Cancel running workflows automatically on PR update * Add the last update later to check cancellation is working * Use github.run_number instead of github.sha --- .github/workflows/build-containers.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.github/workflows/build-containers.yml') diff --git a/.github/workflows/build-containers.yml b/.github/workflows/build-containers.yml index 5057a89a45..90e01b67af 100644 --- a/.github/workflows/build-containers.yml +++ b/.github/workflows/build-containers.yml @@ -19,6 +19,10 @@ on: release: types: [published] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_number }} + cancel-in-progress: true + jobs: deploy-images: runs-on: ubuntu-latest -- cgit v1.2.3-60-g2f50