[TEST] Test Broken CI Job

This commit is contained in:
Dunemask 2024-02-18 17:51:57 -07:00
parent a2e99b57e5
commit e46f51fd2e

View file

@ -7,6 +7,9 @@ inputs:
header: header:
description: Header to be displayed next to the environment description: Header to be displayed next to the environment
required: true required: true
status:
description: Job Status (Can be provided using ${{ job.status }})
required: true
additional-content: additional-content:
descrption: Additional info to include in the message descrption: Additional info to include in the message
required: false required: false
@ -28,13 +31,10 @@ runs:
echo "Error! channel required, and must be 'ci' or 'deployments'!" echo "Error! channel required, and must be 'ci' or 'deployments'!"
exit 1 exit 1
fi fi
echo "${{ job.status }}" if [ ${{ inputs.status }} == "success" ]; then
if [ ${{ job.status }} == "success" ]; then
echo "Caught success?"
echo DISCORD_MESSAGE_STATUS_ICON=":white_check_mark:" >> $GITHUB_ENV echo DISCORD_MESSAGE_STATUS_ICON=":white_check_mark:" >> $GITHUB_ENV
echo DISCORD_MESSAGE_STATUS_COLOR=3405175 >> $GITHUB_ENV echo DISCORD_MESSAGE_STATUS_COLOR=3405175 >> $GITHUB_ENV
elif [ ${{ job.status }} == "failure" ]; then elif [ ${{ inputs.status }} == "failure" ]; then
echo "Caught failure?"
echo DISCORD_MESSAGE_STATUS_ICON=":x:" >> $GITHUB_ENV echo DISCORD_MESSAGE_STATUS_ICON=":x:" >> $GITHUB_ENV
echo DISCORD_MESSAGE_STATUS_COLOR=16071219 >> $GITHUB_ENV echo DISCORD_MESSAGE_STATUS_COLOR=16071219 >> $GITHUB_ENV
else else