From 8cfc07e43fac424c998e792b94aa05e6513c8468 Mon Sep 17 00:00:00 2001 From: HeesungB Date: Tue, 26 Mar 2024 18:31:44 +0900 Subject: [PATCH] test --- .github/workflows/slack-bot-test.yml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/slack-bot-test.yml diff --git a/.github/workflows/slack-bot-test.yml b/.github/workflows/slack-bot-test.yml new file mode 100644 index 000000000..bc14327c9 --- /dev/null +++ b/.github/workflows/slack-bot-test.yml @@ -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/slack-github-action@v1.25.0 + 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 }}