Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
HeesungB committed Mar 26, 2024
1 parent c864318 commit 8cfc07e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/slack-bot-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Slack Bot Test
on:
push:
branches: [slack-bot-test]

jobs:
validation:
name: Slack Bot Test
runs-on: ubuntu-20.04

steps:
- name: Slack Alert Notification
uses: slackapi/[email protected]
if: ${{ steps.check-update.outputs.hasError }}
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
payload: |
{
"text": "Suggest Chain Alert",
"attachments": [
{
"color": "FB486C",
"fields": [
{
"title": "Error Message",
"short": false,
"value": "${{ steps.check-update.outputs.errorMessage }}"
}
]
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 8cfc07e

Please sign in to comment.