Skip to content

Commit

Permalink
UPDATE: format the commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeebru committed Jan 16, 2024
1 parent 4458fc8 commit 4570c66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions report-deployment-status-to-slack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4570c66

Please sign in to comment.