Skip to content

Commit

Permalink
ci(rss-notifier): use emoji for status in result table (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Jan 22, 2025
1 parent 50771ba commit b928add
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/rss-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,22 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
run: |
get_emoji() {
if [ "$1" == "success" ]; then
echo ":white_check_mark:"
elif [ "$1" == "failure" ]; then
echo ":x:"
else
echo ":grey_question:"
fi
}
comment="| Job | Status | Post URL |"
comment+="| --- | ------ | -------- |"
comment+="| Discord | ${{ needs.discord.result }} | ${{ needs.discord.outputs.post-url }} |"
comment+="| Facebook | ${{ needs.facebook.result }} | ${{ needs.facebook.outputs.post-url }} |"
comment+="| Reddit | ${{ needs.reddit.result }} | ${{ needs.reddit.outputs.post-url }} |"
comment+="| X | ${{ needs.x.result }} | ${{ needs.x.outputs.post-url }} |"
comment+="| --- |:------:| -------- |"
comment+="| Discord | $(get_emoji "${{ needs.discord.result }}") | ${{ needs.discord.outputs.post-url }} |"
comment+="| Facebook | $(get_emoji "${{ needs.facebook.result }}") | ${{ needs.facebook.outputs.post-url }} |"
comment+="| Reddit | $(get_emoji "${{ needs.reddit.result }}") | ${{ needs.reddit.outputs.post-url }} |"
comment+="| X | $(get_emoji "${{ needs.x.result }}") | ${{ needs.x.outputs.post-url }} |"
close_reason="completed"
lock_reason="resolved"
Expand Down

0 comments on commit b928add

Please sign in to comment.