schutzbot/update_github_status.sh: new verb: fail

New script subcommand that explicitly reports a failure.
This commit is contained in:
Achilleas Koutsou 2024-03-05 10:45:24 +01:00 committed by Simon Steinbeiß
parent 57bba13752
commit b0abe9725d

View file

@ -16,6 +16,9 @@ elif [[ $1 == "update" ]]; then
else
exit 0
fi
elif [[ $1 == "fail" ]]; then
GITHUB_NEW_STATE="failure"
GITHUB_NEW_DESC="I'm sorry, something is odd about this commit."
else
echo "unknown command"
exit 1