File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -169,8 +169,12 @@ def run(self) -> List[Path]:
169
169
workflow_runs = [workflow_run for workflow_run in self .workflow_runs if not re .match (self .kwargs ["not-name" ], workflow_run .name )]
170
170
print (f"Downloading the artifacts for { len (workflow_runs )} workflow runs" )
171
171
for workflow_run in workflow_runs :
172
- print (f"Downloading artifacts for { workflow_run .name } to { self .temp_workdir .name } " )
173
- workflow_run .download_artifacts (Path (self .temp_workdir .name )) # type: ignore
172
+ if "artifact" in self .kwargs :
173
+ print (f"Downloading artifact { self .kwargs ['artifact' ]} for { workflow_run .name } to { self .temp_workdir .name } " )
174
+ workflow_run .download_artifact (self .kwargs ["artifact" ], Path (self .temp_workdir .name )) # type: ignore
175
+ else :
176
+ print (f"Downloading artifacts for { workflow_run .name } to { self .temp_workdir .name } " )
177
+ workflow_run .download_artifacts (Path (self .temp_workdir .name )) # type: ignore
174
178
return list (map (Path , Path (self .temp_workdir .name ).glob ("**/*" )))
175
179
176
180
class ShellAction ():
You can’t perform that action at this time.
0 commit comments