From ce092e61c613b954bd97b028b193c5bfa65a84db Mon Sep 17 00:00:00 2001 From: Kumaran Rajendhiran Date: Wed, 21 Aug 2024 16:58:53 +0530 Subject: [PATCH] Fix to run check-docs-changes worflow in forks (#1710) * Update checkout as option in update api docs action * Change pull_request to pull_request_target --- .github/workflows/docs_update-references.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs_update-references.yaml b/.github/workflows/docs_update-references.yaml index fa9bff0df2..e83c97a363 100644 --- a/.github/workflows/docs_update-references.yaml +++ b/.github/workflows/docs_update-references.yaml @@ -1,7 +1,7 @@ name: Generate API References documentation on: - pull_request: + pull_request_target: types: - opened - synchronize @@ -22,6 +22,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.head_ref }} - name: Set up Python uses: actions/setup-python@v5 with: