Skip to content

Commit

Permalink
Fix username issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hetulvp committed Apr 21, 2024
1 parent 0aad192 commit b142e12
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/update_leaderboard_after_merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ jobs:
echo "Found merge commit: $merge_commit"
echo "merge_commit=$merge_commit" >> "$GITHUB_ENV"
# Merge commit has maintainer's name so we get name from second last commit
- name: Get original author's name
id: original_author
merge_commit=$(git log --merges --pretty=format:%H -1 $GITHUB_SHA)
echo "Found merge commit: $merge_commit"
echo "merge_commit=$merge_commit" >> "$GITHUB_ENV"

- name: Set original author
run: |
if [ -n "$merge_commit" ] && [ "$GITHUB_SHA" = "$merge_commit" ]; then
Expand All @@ -46,7 +39,7 @@ jobs:
else
original_author=$commit_author
original_email=$commit_email
echo "No merge commit found. Setting original author as $commit_author($commit_email)."
echo "Not a merge commit. Setting original author as $commit_author($commit_email)."
fi
echo "original_author=$original_author" >> "$GITHUB_ENV"
echo "original_email=$original_email" >> "$GITHUB_ENV"
Expand Down

0 comments on commit b142e12

Please sign in to comment.