[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:
Earl Warren 2024-02-19 01:39:29 +01:00
parent 004b772b5c
commit 00d175701e
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 0579CB2928A78A00
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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