Skip to content

Commit

Permalink
Migrate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Nov 25, 2024
1 parent 34dac1a commit 4534f70
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/dockerhub-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,17 @@ jobs:
if: needs.promote-latest.result == 'success'
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@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 4534f70

Please sign in to comment.