diff --git a/.forgejo/workflows/build-release-integration.yml b/.forgejo/workflows/build-release-integration.yml index cdcbf3262..ab2f2ebc1 100644 --- a/.forgejo/workflows/build-release-integration.yml +++ b/.forgejo/workflows/build-release-integration.yml @@ -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 diff --git a/.forgejo/workflows/build-release.yml b/.forgejo/workflows/build-release.yml index 8eac55e56..e619c4dd2 100644 --- a/.forgejo/workflows/build-release.yml +++ b/.forgejo/workflows/build-release.yml @@ -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