mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 06:33:50 +03: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:
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
|
# 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
|
git clone $url/root/forgejo /tmp/forgejo
|
||||||
cd /tmp/forgejo
|
cd /tmp/forgejo
|
||||||
|
|
|
@ -53,8 +53,12 @@ jobs:
|
||||||
set -x
|
set -x
|
||||||
ref="${{ github.ref }}"
|
ref="${{ github.ref }}"
|
||||||
if [[ $ref =~ ^refs/heads/ ]] ; then
|
if [[ $ref =~ ^refs/heads/ ]] ; then
|
||||||
version=${ref#refs/heads/}
|
if test "$ref" = "refs/heads/forgejo" ; then
|
||||||
version=${version%/forgejo}-test
|
version=0.0-test
|
||||||
|
else
|
||||||
|
version=${ref#refs/heads/}
|
||||||
|
version=${version%/forgejo}-test
|
||||||
|
fi
|
||||||
override=true
|
override=true
|
||||||
fi
|
fi
|
||||||
if [[ $ref =~ ^refs/tags/ ]] ; then
|
if [[ $ref =~ ^refs/tags/ ]] ; then
|
||||||
|
|
Loading…
Reference in a new issue