Skip to content

Commit e8126ee

Browse files
authored
Fix for 5.0.0-beta1
1 parent a90e0b5 commit e8126ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ def main():
99
# cut initial v from input
1010
current_tag = os.environ["INPUT_CURRENTTAG"][1:]
1111
# optional parameter
12-
previous_full_tag = os.environ.get("INPUT_PREVFULLTAG")
12+
# override: if current is 5.0.0-beta1, set previous_full_tag to 4.6.20
13+
if current_tag == "5.0.0-beta1":
14+
previous_full_tag = "v4.6.20"
15+
else:
16+
previous_full_tag = os.environ.get("INPUT_PREVFULLTAG")
1317

1418
major, minor, patch, prerelease, _ = semver.VersionInfo.parse(current_tag)
1519
if previous_full_tag:

0 commit comments

Comments
 (0)