This commit is contained in:
LukeZGD 2022-10-12 06:00:59 +08:00
parent 32d0987883
commit 6da11b92e9
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ jobs:
- name: Create name version env - name: Create name version env
run: | run: |
sudo timedatectl set-timezone Asia/Singapore
echo "DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV echo "DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV
echo "SHA_SHORT=$(echo ${{ github.sha }} | cut -c -7)" >> $GITHUB_ENV echo "SHA_SHORT=$(echo ${{ github.sha }} | cut -c -7)" >> $GITHUB_ENV

View File

@ -90,7 +90,8 @@ Main() {
fi fi
Echo "Version: $CurrentVersion" Echo "Version: $CurrentVersion"
elif [[ -e resources/git_hash ]]; then elif [[ -e resources/git_hash ]]; then
Echo "Version: $(cat resources/git_hash)" CurrentVersion="$(cat resources/git_hash)"
Echo "Version: $CurrentVersion"
else else
Echo "Version: Unknown" Echo "Version: Unknown"
if [[ $NoVersionCheck != 1 ]]; then if [[ $NoVersionCheck != 1 ]]; then