CI: Use concurrency group (#4902)

This commit is contained in:
tooomm 2023-10-14 01:01:37 +02:00 committed by GitHub
parent 6bf7c79891
commit b9cfc29059
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,11 @@ on:
- '.github/workflows/web-*.yml'
- '.github/workflows/translations.yml'
# Cancel earlier, unfinished runs of this workflow on the same branch (unless on master)
concurrency:
group: "${{ github.workflow }} @ ${{ github.ref_name }}"
cancel-in-progress: ${{ github.ref_name != 'master' }}
jobs:
configure:
name: Configure
@ -27,11 +32,6 @@ jobs:
sha: ${{steps.configure.outputs.sha}}
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{github.token}} # needs other token https://github.com/styfle/cancel-workflow-action/issues/7
- name: Configure
id: configure
shell: bash