GitHub Actions Iterations
This commit is contained in:
parent
6a2b5da00b
commit
8b214aab3d
@ -1,7 +1,7 @@
|
||||
import re
|
||||
import subprocess
|
||||
from typing import Union, List
|
||||
from functools import cache
|
||||
from functools import lru_cache
|
||||
|
||||
import toml
|
||||
|
||||
@ -88,7 +88,7 @@ class Git(SCM):
|
||||
logger.debug(f"Tag Version: {version}")
|
||||
return version
|
||||
|
||||
@cache
|
||||
@lru_cache(maxsize=None)
|
||||
def get_branch(self) -> str:
|
||||
"""
|
||||
Get the main branch
|
||||
@ -97,7 +97,7 @@ class Git(SCM):
|
||||
proc = self._run_command(self.git_bin, "rev-parse", "--abbrev-ref", "HEAD")
|
||||
return proc.stdout.rstrip()
|
||||
|
||||
@cache
|
||||
@lru_cache(maxsize=None)
|
||||
def get_merge_branch(self) -> Union[str, None]:
|
||||
"""
|
||||
Get the branches involved in the merge
|
||||
|
@ -1,6 +1,6 @@
|
||||
from typing import List
|
||||
from pathlib import Path
|
||||
from functools import cache
|
||||
from functools import lru_cache
|
||||
import configparser
|
||||
|
||||
import toml
|
||||
@ -8,7 +8,7 @@ import toml
|
||||
from semver.exceptions import SemverException
|
||||
|
||||
|
||||
@cache
|
||||
@lru_cache(maxsize=None)
|
||||
def get_settings() -> dict:
|
||||
"""
|
||||
Get the settings from the config file
|
||||
|
Loading…
x
Reference in New Issue
Block a user