1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

[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
No known key found for this signature in database
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