Skip to content

Commit f42a93a

Browse files
committed
fix: update commit author retrieval in Vercel deploy workflow for accuracy
1 parent 3229b23 commit f42a93a

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/vercel-deploy.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ jobs:
5151
fi
5252
5353
- name: Get commit author
54+
id: commit_author
5455
run: |
55-
AUTHOR=$(git log -1 --pretty=format:'%an <%ae>')
56-
echo "author=$AUTHOR" >> "$GITHUB_OUTPUT"
57-
58-
- name: Debug Author Output
59-
run: |
60-
echo "Captured Author: ${{ steps.commit_author.outputs.author }}"
61-
56+
AUTHOR="${{ github.event.head_commit.author.name }} <${{ github.event.head_commit.author.email }}"
57+
echo "Commit author from payload: $AUTHOR"
58+
echo "author=$AUTHOR" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)