File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 30
30
echo "Found merge commit: $merge_commit"
31
31
echo "merge_commit=$merge_commit" >> "$GITHUB_ENV"
32
32
33
- # Merge commit has maintainer's name so we get name from second last commit
34
- - name : Get original author's name
35
- id : original_author
36
- merge_commit=$(git log --merges --pretty=format:%H -1 $GITHUB_SHA)
37
- echo "Found merge commit : $merge_commit"
38
- echo "merge_commit=$merge_commit" >> "$GITHUB_ENV"
39
-
40
33
- name : Set original author
41
34
run : |
42
35
if [ -n "$merge_commit" ] && [ "$GITHUB_SHA" = "$merge_commit" ]; then
46
39
else
47
40
original_author=$commit_author
48
41
original_email=$commit_email
49
- echo "No merge commit found . Setting original author as $commit_author($commit_email)."
42
+ echo "Not a merge commit. Setting original author as $commit_author($commit_email)."
50
43
fi
51
44
echo "original_author=$original_author" >> "$GITHUB_ENV"
52
45
echo "original_email=$original_email" >> "$GITHUB_ENV"
You can’t perform that action at this time.
0 commit comments