File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1616 with :
1717 python-version : ' 3.x'
1818
19+ - name : Install deps
20+ run : make requirements
21+
1922 - name : Set up QEMU
2023 uses :
docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # [email protected] 2124
Original file line number Diff line number Diff line change @@ -10,21 +10,12 @@ from packaging.version import parse
1010ENV_LINODE_CLI_VERSION = "LINODE_CLI_VERSION"
1111
1212
13- def get_version_env ():
14- return os .getenv (ENV_LINODE_CLI_VERSION )
15-
16-
17- def get_version (ref = "HEAD" ):
13+ def get_version ():
1814 # We want to override the version if an environment variable is specified.
1915 # This is useful for certain release and testing pipelines.
20- version_str = get_version_env () or "0.0.0"
21-
22- # Strip the `v` prefix if specified
23- if version_str .startswith ("v" ):
24- version_str = version_str [1 :]
16+ version_str = os .getenv (ENV_LINODE_CLI_VERSION ) or "0.0.0"
2517
2618 return parse (version_str ).release
2719
2820
29- major , minor , patch = get_version ()
30- print ("{}.{}.{}" .format (major , minor , patch ))
21+ print ("{}.{}.{}" .format (* get_version ()))
You can’t perform that action at this time.
0 commit comments