mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
Meta: GitHub tag action: add git log to output for debugging purposes
This commit is contained in:
parent
8e292f710b
commit
e6e3ba4ce5
3
.github/scripts/tag.sh
vendored
3
.github/scripts/tag.sh
vendored
|
|
@ -4,6 +4,8 @@ set -e
|
|||
|
||||
head_tag=$(git describe --exact-match 2>/dev/null || true)
|
||||
|
||||
git log --color=always --format="%C(auto)%h %s%d" | head
|
||||
|
||||
if [[ ${head_tag} =~ [\d{2}\.\d{2}\.\d+] ]]
|
||||
then
|
||||
echo "Current master already has version tag ${head_tag}"
|
||||
|
|
@ -13,6 +15,7 @@ else
|
|||
version=$(date +'%y.%m.0')
|
||||
git tag -a ${version} -m "Release ${version}"
|
||||
git push origin ${version}
|
||||
git log --color=always --format="%C(auto)%h %s%d" | head -1
|
||||
echo "Pushed new tag:"
|
||||
echo "${REPO_URL}/releases/tag/${version}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue