Create an annotated tag to give release.yml chance to run

This commit is contained in:
Vladimir Mihailenco 2021-08-12 15:00:12 +03:00
parent 74f9a7338f
commit 4ed306de42
3 changed files with 5 additions and 5 deletions

View File

@ -4,6 +4,6 @@ PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; \
for dir in $PACKAGE_DIRS
do
printf "${dir}: go get -u ./... && go mod tidy\n"
(cd ./${dir} && go get -u ./... && go mod tidy)
printf "${dir}: go get -d && go mod tidy\n"
(cd ./${dir} && go get -d && go mod tidy)
done

View File

@ -53,8 +53,8 @@ done
for dir in $PACKAGE_DIRS
do
printf "${dir}: go mod tidy\n"
(cd ./${dir} && go mod tidy)
printf "${dir}: go get -d && go mod tidy\n"
(cd ./${dir} && go get -d && go mod tidy)
done
sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go

View File

@ -36,5 +36,5 @@ git tag ${TAG}
for dir in $PACKAGE_DIRS
do
printf "tagging ${dir}/${TAG}\n"
git tag ${dir}/${TAG}
git tag ${dir}/${TAG} -a -m "Version ${TAG}"
done