ci: set cancel-in-progress only for deploy job not the whole docs wf

This commit is contained in:
Oleg Kalachev
2022-11-10 20:04:05 +06:00
parent 393801b023
commit 72f8d901d5

View File

@@ -11,10 +11,6 @@ permissions:
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
defaults:
run:
shell: bash
@@ -75,6 +71,9 @@ jobs:
deploy-docs:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
concurrency:
group: "pages"
cancel-in-progress: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}