diff --git a/.github/workflows/Docu.yml b/.github/workflows/Docu.yml index 0f09daa7b1a2..ec6073e0de23 100644 --- a/.github/workflows/Docu.yml +++ b/.github/workflows/Docu.yml @@ -18,11 +18,10 @@ on: workflow_dispatch: concurrency: - # group by workflow and ref; the last slightly strange component ensures that for pull - # requests, we limit to 1 concurrent job, but for the master branch we don't - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }} - # Cancel intermediate builds, but only if it is a pull request build. - cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + # group by workflow and ref + group: ${{ github.workflow }}-${{ github.ref }} + # Cancel intermediate builds, only the latest on a given branch or PR should complete + cancel-in-progress: true jobs: deploy_docs: