Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jsikorski committed Sep 18, 2024
1 parent ee2c662 commit 06f1393
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def get_artifacts(self) -> List[PathMapping]:
elif isinstance(artifact, PathMapping):
if "*" in str(artifact.src):
root = (
artifact.src.parent.absolute() if not "**" in str(artifact) else Path(".").absolute()
artifact.src.parent.absolute()
if not "**" in str(artifact)
else Path(".").absolute()
)
_artifacts.extend(
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ def get_artifacts(self):
_artifacts = []
for artifact in self.artifacts:
if "*" in str(artifact):
root = artifact.parent.absolute() if "**" not in str(artifact) else Path(".")
root = (
artifact.parent.absolute()
if "**" not in str(artifact)
else Path(".")
)
_artifacts.extend([item for item in root.glob(artifact.name)])
else:
_artifacts.append(artifact)
Expand Down

0 comments on commit 06f1393

Please sign in to comment.