Skip to content

Commit

Permalink
Fix bot token in slack notifier workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mplorentz committed Oct 11, 2024
1 parent 32b9508 commit 42a0742
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/notify-slack-on-failure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ jobs:
- name: Send notification to Slack
uses: slackapi/[email protected]
with:
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
custom-payload: |
{
"text": "GitHub Action *${{ github.event.workflow_run.name }}* has failed in the *${{ github.repository }}* repository.\n<${{ github.event.workflow_run.html_url }}|View the workflow run>"
}
slack-message: "GitHub Action *${{ github.event.workflow_run.name }}* has failed in the *${{ github.repository }}* repository.\n<${{ github.event.workflow_run.html_url }}|View the workflow run>"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 42a0742

Please sign in to comment.