diff --git a/.github/workflows/create-docusaurus-pr.yml b/.github/workflows/create-docusaurus-pr.yml index bede051f6..650fdb427 100644 --- a/.github/workflows/create-docusaurus-pr.yml +++ b/.github/workflows/create-docusaurus-pr.yml @@ -5,6 +5,8 @@ on: - main paths: - 'api/docs/**' + workflow_dispatch: + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -27,7 +29,7 @@ jobs: with: repository: unraid/docs path: docs-repo - token: ${{ github.token }} + token: ${{ secrets.DOCS_PAT_UNRAID_BOT }} - name: Copy updated docs run: | @@ -41,7 +43,7 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: - token: ${{ github.token }} + token: ${{ secrets.DOCS_PAT_UNRAID_BOT }} path: docs-repo commit-message: 'docs: update API documentation' title: 'Update API Documentation'