Skip to content

Commit

Permalink
Cancel existing PR runs on push (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
clee-ai authored Oct 27, 2022
1 parent f08bcba commit a8989f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
types:
- published

# https://stackoverflow.com/questions/66335225
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build_sdist:
name: Build SDist
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
pull_request:
workflow_dispatch:

# https://stackoverflow.com/questions/66335225
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
Expand Down

0 comments on commit a8989f1

Please sign in to comment.