fix(release): auto-tag and build

This commit is contained in:
Jguer committed 2020-01-12 17:40:43 +01:00
1 parent a9b74a0e1e
commit b242d0ac4b
3 files changed
+22 -28

No files matched your search

+6 -4
View File
@@ -1,7 +1,9 @@
#!/bin/bash
if git describe --tags --exact-match ; then
echo "::set-output name=VERSION::$(git describe --tags --exact-match | sed 's/^v//g')"
else
echo "::set-output name=VERSION::$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
echo "::set-output name=CHANGELOG::$(git log --pretty=format:'%s%n%b==============================================' --abbrev-commit $1..$2)"
if git describe --tags --exact-match; then
echo "::set-output name=VERSION::$(git describe --tags --exact-match | sed 's/^v//g')"
else
echo "::set-output name=VERSION::$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
fi