Skip to content

Commit b22429c

Browse files
xBlaz3kxlorenzodonini
authored andcommitted
fix: checking out correct repository (fork) on pull request
1 parent 607009a commit b22429c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/autogen.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,16 @@ jobs:
1717
contents: write
1818

1919
steps:
20-
- name: Checkout code
20+
- name: Checkout (pull request)
2121
uses: actions/checkout@v4
22+
if: github.event_name == 'pull_request'
23+
with:
24+
ref: ${{ github.head_ref }}
25+
repository: ${{ github.event.pull_request.head.repo.full_name }}
26+
27+
- name: Checkout (default)
28+
uses: actions/checkout@v4
29+
if: github.event_name != 'pull_request'
2230
with:
2331
ref: ${{ github.head_ref }}
2432

0 commit comments

Comments
 (0)