Skip to content

Commit

Permalink
fix: Slack message on deploy format changed (#1468)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommartensen authored Feb 4, 2025
1 parent 7711c28 commit 343cd0c
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,15 @@ jobs:
ENVIRONMENT=${{ inputs.environment }} make install-argo clean-argo-config install-monitoring helm-deploy
- name: Notify infra channel about new version
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: slackapi/slack-github-action@v2.0.0
with:
channel-id: CVANK5K5W #acs-infra
payload: >-
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":ship::tada:*Infra (${{ inputs.environment }}) was updated to <${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ inputs.version }}|${{ inputs.version }}>."
}
}
]
}
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: "CVANK5K5W"
text: "Infra (${{ inputs.environment }}) was updated."
blocks:
- type: "section"
text:
type: "mrkdwn"
text: ":ship::tada:*Infra (${{ inputs.environment }}) was updated to <${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ inputs.version }}|${{ inputs.version }}>."

0 comments on commit 343cd0c

Please sign in to comment.