[TEST] Test Broken CI Job
This commit is contained in:
parent
d844f70082
commit
5e212f85ea
1 changed files with 5 additions and 2 deletions
|
@ -26,14 +26,17 @@ runs:
|
|||
echo "Error! channel required, and must be 'ci' or 'deployments'!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "${{ job.status }}"
|
||||
if [ ${{ job.status }} == "success" ]; then
|
||||
echo "Caught success?"
|
||||
echo DISCORD_MESSAGE_STATUS_ICON=":white_check_mark:" >> $GITHUB_ENV
|
||||
echo DISCORD_MESSAGE_STATUS_COLOR=3405175 >> $GITHUB_ENV
|
||||
elif [ ${{ job.status }} == "failure" ]; then
|
||||
echo "Caught failure?"
|
||||
echo DISCORD_MESSAGE_STATUS_ICON=":x:" >> $GITHUB_ENV
|
||||
echo DISCORD_MESSAGE_STATUS_COLOR=16071219 >> $GITHUB_ENV
|
||||
else
|
||||
echo "I donotwannaknow?"
|
||||
echo DISCORD_MESSAGE_STATUS_ICON=":warning:" >> $GITHUB_ENV
|
||||
echo DISCORD_MESSAGE_STATUS_COLOR=16102451 >> $GITHUB_ENV
|
||||
fi
|
||||
|
@ -49,7 +52,7 @@ runs:
|
|||
embed-title: Action Details
|
||||
embed-description: ${{ env.GITHUB_REPOSITORY }}
|
||||
embed-footer-text: "Repository: ${{ env.DISCORD_MESSAGE_REPOSITORY_URL }}"
|
||||
embed-url: ${{ env.DISCORD_MESSAGE_ACTION_URL }}"
|
||||
embed-url: ${{ env.DISCORD_MESSAGE_ACTION_URL }}
|
||||
embed-color: ${{ env.DISCORD_MESSAGE_STATUS_COLOR }}
|
||||
content: |-
|
||||
**[${{ env.DISCORD_MESSAGE_TITLE }}]** | ${{ inputs.header }} | ${{ env.DISCORD_MESSAGE_STATUS_ICON }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue