Skip to content

Commit ce092e6

Browse files
authored
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
1 parent 69dcbcf commit ce092e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/docs_update-references.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Generate API References documentation
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types:
66
- opened
77
- synchronize
@@ -22,6 +22,9 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4
25+
with:
26+
repository: ${{ github.event.pull_request.head.repo.full_name }}
27+
ref: ${{ github.head_ref }}
2528
- name: Set up Python
2629
uses: actions/setup-python@v5
2730
with:

0 commit comments

Comments
 (0)