Update git fetch command to use pull request number

This commit is contained in:
Vigers Ray 2025-11-18 00:21:18 +01:00 committed by GitHub
parent 2c722e61b5
commit 2e918bea9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ jobs:
- name: Get diff
run: |
git fetch origin ${{ github.event.pull_request.head.ref }}:pr_branch
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr_branch
git diff ${{ github.event.pull_request.base.sha }} pr_branch > diff.txt
- name: Save PR metadata