We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b3ef43 commit 11c05beCopy full SHA for 11c05be
.github/actions/watch-previews/app/main.py
@@ -79,14 +79,20 @@ def get_message(commit: str) -> str:
79
if artifact.name == artifact_name:
80
use_artifact = artifact
81
break
82
- if use_artifact:
+ if not use_artifact:
83
+ logging.info(f"Artifact not available")
84
+ else:
85
logging.info(f"Existing artifact: {use_artifact.name}")
86
response = httpx.post(
87
"https://api.github.com/repos/tiangolo/fastapi/actions/workflows/preview-docs.yml/dispatches",
88
headers=headers,
89
json={
90
"ref": "master",
- "inputs": {"pr": f"{pr.number}", "name": artifact_name, "commit": commit},
91
+ "inputs": {
92
+ "pr": f"{pr.number}",
93
+ "name": artifact_name,
94
+ "commit": commit,
95
+ },
96
},
97
)
98
logging.info(
0 commit comments