GitHub Actions Iterations
This commit is contained in:
parent
405ce258f2
commit
3eb8b3da81
@ -29,7 +29,7 @@ class Git(SCM):
|
|||||||
|
|
||||||
def _run_command(
|
def _run_command(
|
||||||
self, *args: str, throwExceptions: bool = True
|
self, *args: str, throwExceptions: bool = True
|
||||||
) -> subprocess.CompletedProcess[str]:
|
) -> subprocess.CompletedProcess:
|
||||||
return subprocess.run(
|
return subprocess.run(
|
||||||
args,
|
args,
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
@ -82,7 +82,11 @@ class Git(SCM):
|
|||||||
f"Error getting latest tagged git version: {str(e.stderr).rstrip()}"
|
f"Error getting latest tagged git version: {str(e.stderr).rstrip()}"
|
||||||
)
|
)
|
||||||
|
|
||||||
if len(tagged_versions) > 0 and tagged_versions[-1] != "":
|
if (
|
||||||
|
tagged_versions is not None
|
||||||
|
and len(tagged_versions) > 0
|
||||||
|
and tagged_versions[-1] != ""
|
||||||
|
):
|
||||||
version = tagged_versions[-1]
|
version = tagged_versions[-1]
|
||||||
|
|
||||||
logger.debug(f"Tag Version: {version}")
|
logger.debug(f"Tag Version: {version}")
|
||||||
|
Loading…
Reference in New Issue
Block a user