File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
.github/actions/watch-previews/app Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ def get_message(commit: str) -> str:
67
67
notified = True
68
68
logging .info (f"Docs preview was notified: { notified } " )
69
69
if not notified :
70
+ artifact_name = f"docs-zip-{ commit } "
70
71
response = httpx .get (
71
72
f"{ github_api } /repos/{ settings .github_repository } /actions/artifacts" ,
72
73
headers = headers ,
@@ -75,7 +76,7 @@ def get_message(commit: str) -> str:
75
76
artifacts_response = ArtifactResponse .parse_obj (data )
76
77
use_artifact : Optional [Artifact ] = None
77
78
for artifact in artifacts_response .artifacts :
78
- if artifact .name == settings . input_name :
79
+ if artifact .name == artifact_name :
79
80
use_artifact = artifact
80
81
break
81
82
if use_artifact :
@@ -85,7 +86,7 @@ def get_message(commit: str) -> str:
85
86
headers = headers ,
86
87
json = {
87
88
"ref" : "master" ,
88
- "inputs" : {"pr" : f"{ pr .number } " , "name" : f"docs-zip- { commit } " },
89
+ "inputs" : {"pr" : f"{ pr .number } " , "name" : artifact_name },
89
90
},
90
91
)
91
92
logging .info (
You can’t perform that action at this time.
0 commit comments