From 6da11b92e9119b59f9542aa2776ffba8a197a228 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Wed, 12 Oct 2022 06:00:59 +0800 Subject: [PATCH] Fix #220 --- .github/workflows/build.yml | 1 + restore.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 010acbf..e3b9e61 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,7 @@ jobs: - name: Create name version env run: | + sudo timedatectl set-timezone Asia/Singapore echo "DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV echo "SHA_SHORT=$(echo ${{ github.sha }} | cut -c -7)" >> $GITHUB_ENV diff --git a/restore.sh b/restore.sh index 1e5a483..ba0ff90 100755 --- a/restore.sh +++ b/restore.sh @@ -90,7 +90,8 @@ Main() { fi Echo "Version: $CurrentVersion" elif [[ -e resources/git_hash ]]; then - Echo "Version: $(cat resources/git_hash)" + CurrentVersion="$(cat resources/git_hash)" + Echo "Version: $CurrentVersion" else Echo "Version: Unknown" if [[ $NoVersionCheck != 1 ]]; then