Skip to content

Commit

Permalink
Try to set error on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Feb 9, 2024
1 parent 569eaa3 commit 75fc4fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ def main() -> None:
validate it, print it out and set it as output ('matrix') and as
environment variable ('MATRIX').
"""
matrix = parse_matrix(os.environ["INPUT_MATRIX"])
try:
matrix = parse_matrix(os.environ["INPUT_MATRIX"])
except Exception as e:
print("::error file=app.js,line=1,col=5,endColumn=7::Missing semicolon")
raise e

print(yaml.dump({"matrix": matrix}, sort_keys=False))

Expand Down

0 comments on commit 75fc4fe

Please sign in to comment.