fix(release): auto-tag and build
This commit is contained in:
3 files changed
+22
-28
No files matched your search
Vendored
+6
-4
@@ -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
|
||||
Reference in new issue
Block a user