mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Merge pull request #5101 from vector-im/doug/5039_workflow_concurrency
Add concurrency to GitHub workflows to auto-cancel older runs.
This commit is contained in:
commit
93e402afcf
4 changed files with 19 additions and 0 deletions
6
.github/workflows/ci-build.yml
vendored
6
.github/workflows/ci-build.yml
vendored
|
@ -17,6 +17,12 @@ jobs:
|
|||
build:
|
||||
name: Build
|
||||
runs-on: macos-11
|
||||
|
||||
concurrency:
|
||||
# When running on develop, use the sha to allow all runs of this workflow to run concurrently.
|
||||
# Otherwise only allow a single run of this workflow on each branch, automatically cancelling older runs.
|
||||
group: ${{ github.ref == 'refs/heads/develop' && format('build-develop-{0}', github.sha) || format('build-{0}', github.ref) }}
|
||||
cancel-in-progress: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
6
.github/workflows/ci-tests.yml
vendored
6
.github/workflows/ci-tests.yml
vendored
|
@ -17,6 +17,12 @@ jobs:
|
|||
tests:
|
||||
name: Tests
|
||||
runs-on: macos-11
|
||||
|
||||
concurrency:
|
||||
# When running on develop, use the sha to allow all runs of this workflow to run concurrently.
|
||||
# Otherwise only allow a single run of this workflow on each branch, automatically cancelling older runs.
|
||||
group: ${{ github.ref == 'refs/heads/develop' && format('tests-develop-{0}', github.sha) || format('tests-{0}', github.ref) }}
|
||||
cancel-in-progress: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
6
.github/workflows/release-alpha.yml
vendored
6
.github/workflows/release-alpha.yml
vendored
|
@ -16,6 +16,12 @@ jobs:
|
|||
build:
|
||||
name: Release
|
||||
runs-on: macos-11
|
||||
|
||||
concurrency:
|
||||
# When running on develop, use the sha to allow all runs of this workflow to run concurrently.
|
||||
# Otherwise only allow a single run of this workflow on each branch, automatically cancelling older runs.
|
||||
group: ${{ github.ref == 'refs/heads/develop' && format('alpha-develop-{0}', github.sha) || format('alpha-{0}', github.ref) }}
|
||||
cancel-in-progress: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
1
changelog.d/5039.build
Normal file
1
changelog.d/5039.build
Normal file
|
@ -0,0 +1 @@
|
|||
Add concurrency to the GitHub workflows to auto-cancel older runs of each action for PRs.
|
Loading…
Reference in a new issue