summaryrefslogtreecommitdiff
path: root/.github/workflows/windows_python.yml
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-06-09 00:46:46 +0200
committerGitHub <noreply@github.com>2022-06-08 15:46:46 -0700
commit3fdb3f832af56a4afc38da1691fff3ca6596bf20 (patch)
tree3b231b2a559a8983fdd254207e2ea6d2ffefe43d /.github/workflows/windows_python.yml
parentbedad508a92fbfacc09316839f5d47c7e339e237 (diff)
downloadspack-3fdb3f832af56a4afc38da1691fff3ca6596bf20.tar.gz
spack-3fdb3f832af56a4afc38da1691fff3ca6596bf20.tar.bz2
spack-3fdb3f832af56a4afc38da1691fff3ca6596bf20.tar.xz
spack-3fdb3f832af56a4afc38da1691fff3ca6596bf20.zip
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
Diffstat (limited to '.github/workflows/windows_python.yml')
-rw-r--r--.github/workflows/windows_python.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/windows_python.yml b/.github/workflows/windows_python.yml
index 4707cab416..1b3332fef5 100644
--- a/.github/workflows/windows_python.yml
+++ b/.github/workflows/windows_python.yml
@@ -9,6 +9,11 @@ on:
branches:
- develop
- releases/**
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_number }}
+ cancel-in-progress: true
+
defaults:
run:
shell: