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/macos_python.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.github/workflows/macos_python.yml') diff --git a/.github/workflows/macos_python.yml b/.github/workflows/macos_python.yml index 130a1bf70b..55e3997d0e 100644 --- a/.github/workflows/macos_python.yml +++ b/.github/workflows/macos_python.yml @@ -16,6 +16,10 @@ on: - '.github/workflows/macos_python.yml' # TODO: run if we touch any of the recipes involved in this +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_number }} + cancel-in-progress: true + # GitHub Action Limits # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions -- cgit v1.2.3-60-g2f50