Removed unused git variables
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Nicolai Ort 2023-11-10 14:50:54 +01:00
parent 64825a7878
commit b1dfe5024f
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -2,20 +2,6 @@
set -euo pipefail
if [[ -z "${CI_COMMIT_AUTHOR}" ]]; then
export CI_COMMIT_AUTHOR=drone
fi
if [[ -z "${CI_COMMIT_AUTHOR_EMAIL}" ]]; then
export CI_COMMIT_AUTHOR_EMAIL=bot@odit.services
fi
echo "Setting git user to ${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>"
export GIT_AUTHOR_NAME=${CI_COMMIT_AUTHOR}
export GIT_AUTHOR_EMAIL=${CI_COMMIT_AUTHOR_EMAIL}
export GIT_COMMITTER_NAME=${CI_COMMIT_AUTHOR}
export GIT_COMMITTER_EMAIL=${CI_COMMIT_AUTHOR_EMAIL}
CURRENTTAG=$(git tag --sort=-creatordate | head -n 1)
PREVIOUSTAG=$(git tag --sort=-creatordate | head -n 2 | tail -n 1)
echo "Diff: $PREVIOUSTAG..$CURRENTTAG"