From 1625da1f7f939d53096806469609b3aca2c9a022 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Arango Gutierrez Date: Mon, 19 Aug 2024 13:21:15 +0200 Subject: [PATCH] Customize slack message with emojis Signed-off-by: Carlos Eduardo Arango Gutierrez --- .github/workflows/golang.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/golang.yaml b/.github/workflows/golang.yaml index 56c4ffa3..0d8d2d63 100644 --- a/.github/workflows/golang.yaml +++ b/.github/workflows/golang.yaml @@ -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