Skip to content

Commit 470010d

Browse files
committed
Try to fix action checkout bug
1 parent 4d98634 commit 470010d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/generate-test-ids.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515
with:
16-
ref: ${{ github.head_ref }} # Check out the PR branch, not the merge commit
16+
repository: ${{ github.event.pull_request.head.repo.full_name }}
17+
ref: ${{ github.event.pull_request.head.ref }} # Check out the PR branch, not the merge commit
18+
fetch-depth: 0
1719

1820
- name: Setup Node.js
1921
uses: actions/setup-node@v4
@@ -47,4 +49,4 @@ jobs:
4749
git config user.email "test-id-action@users.noreply.github.com"
4850
git add "tests/**/*.json"
4951
git commit -m "Update test IDs based on the schema, test data, and expected result." || echo "No changes to commit"
50-
git push
52+
git push origin ${{ github.event.pull_request.head.ref }}

0 commit comments

Comments
 (0)