mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
tools: github actions: prevent multiple concurrent workflow runs on the same branch/ref
- cancel other pending/in-progress workflows if a new commit is pushed to the ref - ref. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
This commit is contained in:
parent
fd8ff7a81e
commit
2745323ec8
2 changed files with 8 additions and 0 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -5,6 +5,10 @@ on:
|
|||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
4
.github/workflows/update-metadata.yml
vendored
4
.github/workflows/update-metadata.yml
vendored
|
|
@ -5,6 +5,10 @@ on:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
test_schedule:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue