diff options
author | Marc Cornellà <hello@mcornella.com> | 2022-02-21 19:27:21 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2022-02-21 19:27:21 +0100 |
commit | ebfd7cb2191bdf02ebdc2df6c47697d3a9d195e3 (patch) | |
tree | b3b24cc9c05806b3c03438810267252df3980dce /.github | |
parent | 07b829c894738e4ad594dc5f8d73401fbd83f203 (diff) | |
download | zsh-ebfd7cb2191bdf02ebdc2df6c47697d3a9d195e3.tar.gz zsh-ebfd7cb2191bdf02ebdc2df6c47697d3a9d195e3.tar.bz2 zsh-ebfd7cb2191bdf02ebdc2df6c47697d3a9d195e3.zip |
ci: cancel current runs on new trigger
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/main.yml | 4 | ||||
-rw-r--r-- | .github/workflows/project.yml | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cdadc1434..50e00f9c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,10 @@ on: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: tests: name: Run tests diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 800761554..4b671d449 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -5,6 +5,10 @@ on: pull_request_target: types: [opened, synchronize] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: add-to-project: name: Add to project |