Skip to content

Commit

Permalink
Add concurrency to presubmit jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaraccident committed Mar 13, 2024
1 parent f51da82 commit 4f2ae76
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build_linux_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ on:
required: true
type: string

concurrency:
# A PR number if a pull request and otherwise the commit hash. This cancels
# queued and in-progress runs for the same PR (presubmit) or commit
# (postsubmit). The workflow name is prepended to avoid conflicts between
# different workflows.
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
build_linux_packages:
name: Build Linux Packages
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/build_python_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ on:
required: false
type: string

concurrency:
# A PR number if a pull request and otherwise the commit hash. This cancels
# queued and in-progress runs for the same PR (presubmit) or commit
# (postsubmit). The workflow name is prepended to avoid conflicts between
# different workflows.
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
build_python_packages:
name: Build Python Packages
Expand Down

0 comments on commit 4f2ae76

Please sign in to comment.