From 835a7409b5855bc688e2b2d892ea4619fd7b7c67 Mon Sep 17 00:00:00 2001 From: even0306 <58162761+even0306@users.noreply.github.com> Date: Sat, 6 Apr 2024 00:42:37 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48e6d54..4bb28f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,7 +69,7 @@ jobs: - name: Get Version Number run: | - versionNum=$(./db_backup_go --version) + versionNum=$(cat main.go | grep "version :=" | awk -F "\"" '{print $2}') echo "VERSION=$versionNum" >> $GITHUB_ENV - name: Change the name