mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
fix: do not crash if tag is not semver compliant
This commit is contained in:
3
tip.py
3
tip.py
@@ -74,6 +74,9 @@ if gh_ref[0:10] == 'refs/tags/':
|
||||
if semver == None and env_tag[0] == 'v':
|
||||
semver = re.search(rexp, env_tag[1:])
|
||||
tag = env_tag
|
||||
if semver == None:
|
||||
print('! Could not get semver from %s' % gh_ref)
|
||||
else:
|
||||
if semver.group('prerelease') is None:
|
||||
# is a regular semver compilant tag
|
||||
is_prerelease = False
|
||||
|
||||
Reference in New Issue
Block a user