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
This commit is contained in:
parent
bedad508a9
commit
3fdb3f832a
4
.github/workflows/bootstrap.yml
vendored
4
.github/workflows/bootstrap.yml
vendored
@ -19,6 +19,10 @@ on:
|
|||||||
# nightly at 2:16 AM
|
# nightly at 2:16 AM
|
||||||
- cron: '16 2 * * *'
|
- cron: '16 2 * * *'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
fedora-clingo-sources:
|
fedora-clingo-sources:
|
||||||
|
4
.github/workflows/build-containers.yml
vendored
4
.github/workflows/build-containers.yml
vendored
@ -19,6 +19,10 @@ on:
|
|||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-images:
|
deploy-images:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
4
.github/workflows/macos_python.yml
vendored
4
.github/workflows/macos_python.yml
vendored
@ -16,6 +16,10 @@ on:
|
|||||||
- '.github/workflows/macos_python.yml'
|
- '.github/workflows/macos_python.yml'
|
||||||
# TODO: run if we touch any of the recipes involved in this
|
# 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
|
# GitHub Action Limits
|
||||||
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
|
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
|
||||||
|
|
||||||
|
5
.github/workflows/unit_tests.yaml
vendored
5
.github/workflows/unit_tests.yaml
vendored
@ -9,6 +9,11 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
- releases/**
|
- releases/**
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Validate that the code can be run on all the Python versions
|
# Validate that the code can be run on all the Python versions
|
||||||
# supported by Spack
|
# supported by Spack
|
||||||
|
5
.github/workflows/windows_python.yml
vendored
5
.github/workflows/windows_python.yml
vendored
@ -9,6 +9,11 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
- releases/**
|
- releases/**
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell:
|
shell:
|
||||||
|
Loading…
Reference in New Issue
Block a user