Skip to content

Commit 013c743

Browse files
committed
Notify error report by using slackapi/slack-github-action
1 parent 693bbb2 commit 013c743

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/scheduler_daily.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ jobs:
9898

9999
- name: 🔔 Notify error to Slack (if any)
100100
if: failure()
101-
uses: yasslab/slack_notify@main
102-
with:
101+
uses: slackapi/slack-github-action@v1.24.0
102+
env:
103103
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
104+
with:
105+
# Slack channel id, channel name, or user id to post message.
106+
# See also: https://api.slack.com/methods/chat.postMessage#channels
107+
# You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
108+
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
109+
# For posting a simple plain text message
110+
slack-message: "<@yasulab> GitHub build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"

0 commit comments

Comments
 (0)