Skip to content

Commit

Permalink
Fix to run check-docs-changes worflow in forks (#1710)
Browse files Browse the repository at this point in the history
* Update checkout as option in update api docs action

* Change pull_request to pull_request_target
  • Loading branch information
kumaranvpl authored Aug 21, 2024
1 parent 69dcbcf commit ce092e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docs_update-references.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Generate API References documentation

on:
pull_request:
pull_request_target:
types:
- opened
- synchronize
Expand All @@ -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:
Expand Down

0 comments on commit ce092e6

Please sign in to comment.