File tree Expand file tree Collapse file tree 2 files changed +6
-19
lines changed
Expand file tree Collapse file tree 2 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 4141 PR_NUMBER : ${{ github.event.issue.number }}
4242 NODE_ID : ${{ github.event.comment.node_id }}
4343
44- - name : Get PR HEAD Ref
45- id : getRef
46- run : echo "pr_ref=$(gh pr view $PR_NUMBER --repo ${{ github.repository }} --json headRefOid | jq -r '.headRefOid')" >> $GITHUB_OUTPUT
44+ - name : Get PR HEAD branch
45+ id : getBranch
46+ # This gets the PR's head ref name (aka branch)
47+ # We can't use the SHA or the default because of how this workflow is triggered
48+ run : echo "pr_branch=$(gh pr view $PR_NUMBER --repo ${{ github.repository }} --json headRefName | jq -r '.headRefName')" >> $GITHUB_OUTPUT
4749 env :
4850 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4951 PR_NUMBER : ${{ github.event.issue.number }}
5254 uses : actions/checkout@v4
5355 with :
5456 fetch-depth : 0
55- ref : ${{ steps.getRef .outputs.pr_ref }}
57+ ref : ${{ steps.getBranch .outputs.pr_branch }}
5658 token : ${{ secrets.PAT }}
5759
5860 - name : Run the regeneration
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments