Skip to content

Commit

Permalink
Merge pull request #88 from ArangoGutierrez/slack_bot
Browse files Browse the repository at this point in the history
Customize slack message with emojis
  • Loading branch information
ArangoGutierrez authored Aug 19, 2024
2 parents a60a437 + 1625da1 commit 4d59284
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ jobs:

- name: Check workflow status
run: |
STATUS_MESSAGE=""
if [ "${{ job.status }}" == "success" ]; then
STATUS_MESSAGE=`:green-check-mark: On repository ${{ github.repository }} the Workflow ${{ github.workflow }} has completed successfully.`
if [ "${{ job.status }}" = "success" ]; then
STATUS_MESSAGE=":green-check-mark: On repository ${{ github.repository }} the Workflow ${{ github.workflow }} has completed successfully."
else
STATUS_MESSAGE=`:red_target: On repository ${{ github.repository }} the Workflow ${{ github.workflow }} has failed.`
fi
echo $STATUS_MESSAGE >> $GITHUB_ENV
STATUS_MESSAGE=":red_target: On repository ${{ github.repository }} the Workflow ${{ github.workflow }} has failed."
fi
echo "STATUS_MESSAGE=$STATUS_MESSAGE" >> $GITHUB_ENV
- name: Send Slack alert notification
id: slack
Expand Down

0 comments on commit 4d59284

Please sign in to comment.