feat: add cancel in progress behavior to PR actions

This commit is contained in:
Aaron Blankstein
2022-01-12 16:31:29 -06:00
parent 7011f32b4e
commit e94bac3fa5
2 changed files with 10 additions and 0 deletions

View File

@@ -5,6 +5,11 @@ name: stacks-bitcoin-integration-tests
on:
pull_request:
concurrency:
group: stacks-bitcoin-integration-tests-${{ github.ref }}
# Only cancel in progress if this is for a PR
cancel-in-progress: github.event_name == 'pull_request'
jobs:
build-integration-image:
runs-on: ubuntu-latest

View File

@@ -12,6 +12,11 @@ on:
description: 'The tag to create (optional)'
required: false
concurrency:
group: stacks-blockchain-${{ github.ref }}
# Only cancel in progress if this is for a PR
cancel-in-progress: github.event_name == 'pull_request'
jobs:
# Notify Slack channel of workflow start
notify-start: