We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd426ea commit c02b049Copy full SHA for c02b049
.github/workflows/format.yml
@@ -13,11 +13,11 @@ jobs:
13
runs-on: ubuntu-latest
14
15
steps:
16
- - name: Checkout PR HEAD
+ - name: Checkout PR HEAD (PR or fallback)
17
uses: actions/checkout@v4
18
with:
19
- repository: ${{ github.event.pull_request.head.repo.full_name }}
20
- ref: ${{ github.event.pull_request.head.sha }}
+ repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}
+ ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
21
fetch-depth: 0
22
23
- name: Detect fork vs same-repo
0 commit comments