diff --git a/.github/actions/update-version/action.yml b/.github/actions/update-version/action.yml index 2a53b7e1..1f316681 100644 --- a/.github/actions/update-version/action.yml +++ b/.github/actions/update-version/action.yml @@ -27,9 +27,10 @@ runs: import re with open('version.lua', 'r+', encoding='utf-8') as file: commitHash = '${{ inputs.commit }}' - commitHash = commitHash[0:4] if commitHash != '' else '????' + if commitHash != '': + commitHash = '@' + commitHash[0:4] data = file.read() - data = re.sub('(\d)"', r'\1@' + commitHash + '"', data, 1) + data = re.sub('(\d)"', r'\1' + commitHash + '"', data, 1) file.seek(0) file.truncate() file.flush()