From 4570c6668e816ea297894ea6aa71efbbc95bc91d Mon Sep 17 00:00:00 2001 From: Opeyemi Alao <54288773+Eeebru@users.noreply.github.com> Date: Tue, 16 Jan 2024 16:27:57 +0000 Subject: [PATCH] UPDATE: format the commit sha --- report-deployment-status-to-slack/action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/report-deployment-status-to-slack/action.yml b/report-deployment-status-to-slack/action.yml index 85d6c079..330c586a 100644 --- a/report-deployment-status-to-slack/action.yml +++ b/report-deployment-status-to-slack/action.yml @@ -60,26 +60,26 @@ runs: start) SLACK_MESSAGE=":loading: Updating ${{ inputs.environment }} to \`${{ inputs.tag }}\` on ${{ inputs.project }}. ${{ inputs.url }} - SHA: ${{ inputs.commit-sha }}" + SHA: \`${{ inputs.commit-sha }}\`" ;; success) SLACK_MESSAGE=":white_check_mark: Updated ${{ inputs.environment }} to \`${{ inputs.tag }}\` on ${{ inputs.project }}. ${{ inputs.url }} - SHA: ${{ inputs.commit-sha }}" + SHA: \`${{ inputs.commit-sha }}\`" ;; failure) SLACK_MESSAGE=":x: Failed to update ${{ inputs.environment }} to \`${{ inputs.tag }}\` on ${{ inputs.project }}. ${{ inputs.url }} - SHA: ${{ inputs.commit-sha }} + SHA: \`${{ inputs.commit-sha }}\` Please retry or contact @devops team." ;; cancelled) SLACK_MESSAGE=":hand: Cancelled update of ${{ inputs.environment }} to \`${{ inputs.tag }}\` on ${{ inputs.project }}. ${{ inputs.url }} - SHA: ${{ inputs.commit-sha }}" + SHA: \`${{ inputs.commit-sha }}\`" ;; esac