From 00d175701ed00fcfdc621a375769279886978c77 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 19 Feb 2024 01:39:29 +0100 Subject: [PATCH] [RELEASE] use 0.0-test instead of forgejo-test so that it is a valid semver version instead of not --- .forgejo/workflows/build-release-integration.yml | 2 +- .forgejo/workflows/build-release.yml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build-release-integration.yml b/.forgejo/workflows/build-release-integration.yml index cdcbf32627..ab2f2ebc10 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 8eac55e561..e619c4dd27 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