Skip to content

Commit

Permalink
chore: Removes slack notification on changelog update failure (tempor…
Browse files Browse the repository at this point in the history
…ary) (#2155)
  • Loading branch information
oarbusi authored Apr 16, 2024
1 parent 6c7e1d5 commit 7d3a5e3
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/generate-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,42 +34,4 @@ jobs:
git push
fi
slack-notification:
needs: [generate-changelog]
if: ${{ !cancelled() && needs.generate-changelog.result == 'failure' }}
runs-on: ubuntu-latest
steps:
- name: Send Slack message
id: slack
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001
with:
payload: |
{
"text": "Automatic Changelog update failed",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Automatic Changelog update failed* ${{ secrets.SLACK_ONCALL_TAG }}"
}
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": ":github: Failed action"
},
"url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 comments on commit 7d3a5e3

Please sign in to comment.