mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-04-24 15:07:48 -05:00
Print warning in CI summary
This commit is contained in:
parent
0057ccc056
commit
9815ca0bf6
|
|
@ -251,7 +251,11 @@ def scryfall2mtgjson(scryfall_cards: List[Dict[str, Any]]) -> List[Dict[str, Any
|
|||
}
|
||||
trice_cards.append(trice_card)
|
||||
except Exception as e:
|
||||
print(f"Unable to parse {sf_card.get('name')} ({sf_card.get('set')}): {str(e)}")
|
||||
# If running in GitHub Actions CI, print the message as a warning
|
||||
if 'GITHUB_ACTION' in os.environ:
|
||||
print(f"::warning::Unable to parse {sf_card.get('name')} ({sf_card.get('set')}): {str(e)}")
|
||||
else:
|
||||
print(f"Unable to parse {sf_card.get('name')} ({sf_card.get('set')}): {str(e)}")
|
||||
|
||||
return trice_cards
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user