From 1310f1150295b58131bd01539d8752388b45153b Mon Sep 17 00:00:00 2001 From: Gapodo Date: Thu, 8 Dec 2022 01:05:41 +0100 Subject: [PATCH] better vars --- .woodpecker/release-version.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker/release-version.yml b/.woodpecker/release-version.yml index 3ac8570d71..7e0377facf 100644 --- a/.woodpecker/release-version.yml +++ b/.woodpecker/release-version.yml @@ -97,12 +97,12 @@ pipeline: image: *golang_image pull: true environment: - TAG: ${CI_COMMIT_TAG##v} + TAG: ${CI_COMMIT_TAG:-main} commands: - env | grep -vi drone | sort -h - mkdir -p /source/dist/release - - touch /source/dist/release/forgejo-${TAG:-main}-linux-arm64 - - touch /source/dist/release/forgejo-${TAG:-main}-linux-amd64 + - touch /source/dist/release/forgejo-$${TAG##v}-linux-arm64 + - touch /source/dist/release/forgejo-$${TAG##v}-linux-amd64 - mkdir tmp-bin - cp -r dist/* tmp-bin/ - ls -la tmp-bin/*