修正ci替换版本号的小问题
This commit is contained in:
2
.github/actions/update-version/action.yml
vendored
2
.github/actions/update-version/action.yml
vendored
@@ -29,7 +29,7 @@ runs:
|
|||||||
commitHash = '${{ inputs.commit }}'
|
commitHash = '${{ inputs.commit }}'
|
||||||
commitHash = commitHash[0:4] if commitHash != '' else '????'
|
commitHash = commitHash[0:4] if commitHash != '' else '????'
|
||||||
data = file.read()
|
data = file.read()
|
||||||
data = re.sub('(\d)"', r'\1@' + commitHash + '"', data)
|
data = re.sub('(\d)"', r'\1@' + commitHash + '"', data, 1)
|
||||||
file.seek(0)
|
file.seek(0)
|
||||||
file.truncate()
|
file.truncate()
|
||||||
file.flush()
|
file.flush()
|
||||||
|
|||||||
Reference in New Issue
Block a user