Skip to content

Commit 98c2d6b

Browse files
authored
Release step with GIT email property (#142)
1 parent 45c2c5c commit 98c2d6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
run: |
1414
VERSION=${GITHUB_REF#refs/tags/}
1515
MAJOR=${VERSION%%.*}
16-
git config --global user.name "GitHub Actions"
16+
git config user.name "$(git log -n 1 --pretty=format:%an)"
17+
git config user.email "$(git log -n 1 --pretty=format:%ae)"
1718
echo "Updating ${MAJOR} tag"
1819
git tag -fa ${MAJOR} -m "Update major version tag"
1920
git push origin ${MAJOR} --force

0 commit comments

Comments
 (0)