From b9cfc29059ce1f6593dfa498102a9647ac6d1cbf Mon Sep 17 00:00:00 2001 From: tooomm Date: Sat, 14 Oct 2023 01:01:37 +0200 Subject: [PATCH] CI: Use concurrency group (#4902) --- .github/workflows/desktop-build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index 86000772..d23320cc 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -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 @@ -26,12 +31,7 @@ jobs: tag: ${{steps.configure.outputs.tag}} 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 - + steps: - name: Configure id: configure shell: bash