diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 347f9d95..9c9d1c11 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -2,7 +2,7 @@ name: "Documentation" on: - pull_request: + pull_request_target: branches: - "[0-9]+.[0-9]+" - "[0-9]+.x" @@ -27,7 +27,9 @@ jobs: steps: - name: "Checkout code" uses: "actions/checkout@v3" - + with: + repository: ${{ github.event.pull_request.repository.url }} + ref: ${{ github.event.pull_request.head.sha }} - name: "Checkout Docs Generator" uses: "actions/checkout@v3" with: