diff --git a/.github/workflows/gh-pages-docs.yml b/.github/workflows/gh-pages-docs.yml index 9919a5d..c12ed48 100644 --- a/.github/workflows/gh-pages-docs.yml +++ b/.github/workflows/gh-pages-docs.yml @@ -2,8 +2,9 @@ name: Generate docs on: [push, pull_request, workflow_dispatch] -permissions: - contents: write +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true jobs: pages: @@ -14,7 +15,7 @@ jobs: permissions: pages: write id-token: write - contents: read + contents: write steps: - id: deployment uses: sphinx-notes/pages@v3