diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index a7b6e689..82f7a952 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -1,9 +1,12 @@ name: Publish Docs on: + pull_request: + branches: [ main ] push: branches: - main + - chore/update-docs-token paths: - "docs/**" - "pyproject.toml" @@ -17,12 +20,12 @@ jobs: run: | repo_owner="uipath" repo_name="uipath-python" - event_type="publish-docs" + event_type="test-publish-docs" curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.REPO_ACCESS }}" \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/$repo_owner/$repo_name/dispatches \ -d "{\"event_type\": \"$event_type\", \"client_payload\": {}}"