Skip to content

Commit 5d7a7ce

Browse files
committed
fix branch issue
1 parent 3d9cfb0 commit 5d7a7ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/trademark-cla-approval.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
core.setOutput('pr_number', prNumber);
142142
core.setOutput('pr_author', prAuthor);
143143
core.setOutput('approved_by', prAuthor);
144-
core.setOutput('pr_head_sha', pr.head.sha);
144+
core.setOutput('pr_head_ref', pr.head.ref);
145145
146146
// Add confirmation comment
147147
const confirmationBody = [
@@ -170,8 +170,8 @@ jobs:
170170
uses: actions/checkout@v4
171171
with:
172172
fetch-depth: 0
173-
# For issue_comment events, checkout the PR head
174-
ref: ${{ steps.process-comment.outputs.pr_head_sha }}
173+
# For issue_comment events, checkout the PR head branch
174+
ref: ${{ steps.process-comment.outputs.pr_head_ref }}
175175
token: ${{ steps.generate-token.outputs.token || secrets.GITHUB_TOKEN }}
176176

177177
- name: Record signature to file

0 commit comments

Comments
 (0)