environments.py aktualisiert
This commit is contained in:
parent
fe8cf7199b
commit
41946884d3
@ -41,8 +41,3 @@ class Environment:
|
|||||||
replace_dict = {'<':'(', '>':')', '\n':'\n '}
|
replace_dict = {'<':'(', '>':')', '\n':'\n '}
|
||||||
result = ''.join(i if i not in replace_dict else replace_dict[i] for i in message)
|
result = ''.join(i if i not in replace_dict else replace_dict[i] for i in message)
|
||||||
return result
|
return result
|
||||||
def get_version(self):
|
|
||||||
'''GITHUB_REF contain "refs/tags/v0.0.2" or "refs/heads/main". If second part is "tags",
|
|
||||||
return tag with version number, else - None'''
|
|
||||||
tags = self.tag.split("/")
|
|
||||||
return tags[2] if tags[1] == "tags" else None
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user