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