Skip to content

Commit c02b049

Browse files
authored
Update format.yml
1 parent bd426ea commit c02b049

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: Checkout PR HEAD
16+
- name: Checkout PR HEAD (PR or fallback)
1717
uses: actions/checkout@v4
1818
with:
19-
repository: ${{ github.event.pull_request.head.repo.full_name }}
20-
ref: ${{ github.event.pull_request.head.sha }}
19+
repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}
20+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
2121
fetch-depth: 0
2222

2323
- name: Detect fork vs same-repo

0 commit comments

Comments
 (0)