Skip to content

Commit

Permalink
Update slackapi/slack-github-action action to v2 (#1463)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Filip Troníček <filip@gitpod.io>
  • Loading branch information
renovate[bot] and filiptronicek authored Nov 26, 2024
1 parent 8df57d8 commit c7601da
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/dockerhub-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,22 +106,19 @@ jobs:
- name: The release was successful
id: slack-success
if: needs.promote-latest.result == 'success'
uses: slackapi/slack-github-action@v1.27.1
uses: slackapi/slack-github-action@v2.0.0
with:
webhook-type: incoming-webhook
webhook: ${{ secrets.RELEASE_NOTIFY_WEBHOOK }}
payload: |
{
"text": "The release was successful :rocket:"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.RELEASE_NOTIFY_WEBHOOK }}
text: "The release was successful :rocket:"
- name: The release was not successful
id: slack-failure
if: needs.promote-latest.result != 'success'
uses: slackapi/slack-github-action@v1.27.1
uses: slackapi/slack-github-action@v2.0.0
with:
webhook-type: incoming-webhook
webhook: ${{ secrets.RELEASE_NOTIFY_WEBHOOK }}
payload: |
{
"text": "${{ format('The release had trouble :construction:, the result was: {0}', needs.promote-latest.result) }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.RELEASE_NOTIFY_WEBHOOK }}
text: ${{ format('The release had trouble :construction:, the result was: {0}', needs.promote-latest.result) }}

0 comments on commit c7601da

Please sign in to comment.