From 1b84f5064c39975307f1b8068c8e87b218cde7fa Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Wed, 13 Nov 2024 17:06:08 +0100 Subject: [PATCH] bugfix --- .gitea/workflows/release.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 28a2659..d30ad62 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -46,9 +46,7 @@ jobs: - name: Check version match run: | REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_' | tr '[:upper:]' '[:lower:]') - test "$(cat $REPOSITORY_NAME/VERSION)" = "${GITHUB_REF_NAME:1}" - SUCCESS=$? - if $SUCCESS; then + if [ "$(cat $REPOSITORY_NAME/VERSION)" = "${GITHUB_REF_NAME:1}" ] ; then echo "Version matches successfully!" else echo "Version must match!"