Skip to content

Commit dbf9bc3

Browse files
hua7450claude
andcommitted
Fix checkout to use push context instead of invalid pull_request context
The workflow triggers on push to main, but checkout was referencing github.event.pull_request which doesn't exist on push events. Also bumps actions/checkout from v3 to v4. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5241e90 commit dbf9bc3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/update-versioning.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ jobs:
2525
app-id: ${{ secrets.APP_ID }}
2626
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2727
- name: Checkout repo
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
with:
30-
repository: ${{ github.event.pull_request.head.repo.full_name }}
31-
ref: ${{ github.event.pull_request.head.ref }}
30+
ref: main
3231
token: ${{ steps.app-token.outputs.token }}
3332
- name: Setup Python
3433
uses: actions/setup-python@v2

0 commit comments

Comments
 (0)