Update __main__.py

This commit is contained in:
tooomm 2022-01-24 15:00:05 +01:00 committed by GitHub
parent 47c3b43963
commit bcfb1038c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,7 +408,7 @@ def write_spoilers_xml(trice_dicts: Dict[str, List[Dict[str, Any]]]) -> bool:
old_xml_location = str(OUTPUT_DIR.joinpath(output_file_name))
if compare_xml_content(card_xml_file.name, old_xml_location):
print("No new data in spoiler.xml, skipping replacement")
print("::notice::No new data in spoiler.xml, skipping replacement")
return False
# Move new version to old location
@ -646,9 +646,10 @@ def main() -> None:
# Set output to deploy
if changed:
print("::set-output name=deploy::true")
print("::notice title=Updates available::New spoiler files will be uploaded")
else:
print("::set-output name=deploy::false")
print("::notice:: No new spoilers found")
print("::notice title=No updates available::There are no new spoiler cards")
if __name__ == "__main__":