[RELEASE] use 0.0-test instead of forgejo-test
so that it is a valid semver version instead of not
This commit is contained in:
parent
004b772b5c
commit
00d175701e
2 changed files with 7 additions and 3 deletions
|
@ -110,7 +110,7 @@ jobs:
|
|||
#
|
||||
# Push a commit to a branch that triggers the build of a test release
|
||||
#
|
||||
version=forgejo-test
|
||||
version=0.0-test
|
||||
(
|
||||
git clone $url/root/forgejo /tmp/forgejo
|
||||
cd /tmp/forgejo
|
||||
|
|
|
@ -53,8 +53,12 @@ jobs:
|
|||
set -x
|
||||
ref="${{ github.ref }}"
|
||||
if [[ $ref =~ ^refs/heads/ ]] ; then
|
||||
version=${ref#refs/heads/}
|
||||
version=${version%/forgejo}-test
|
||||
if test "$ref" = "refs/heads/forgejo" ; then
|
||||
version=0.0-test
|
||||
else
|
||||
version=${ref#refs/heads/}
|
||||
version=${version%/forgejo}-test
|
||||
fi
|
||||
override=true
|
||||
fi
|
||||
if [[ $ref =~ ^refs/tags/ ]] ; then
|
||||
|
|
Loading…
Reference in a new issue