Skip to content

Commit 5613b97

Browse files
committed
Migrate for slack-github-action v2
1 parent f6d7b25 commit 5613b97

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/notify_slack.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ jobs:
1010
if: github.event.discussion && github.event.comment
1111
steps:
1212
- uses: slackapi/slack-github-action@v2.0.0
13-
with:
14-
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
15-
slack-message: "Created discussion comment: ${{ github.event.comment.html_url }}"
13+
method: chat.postMessage
14+
payload: |
15+
channel: "${{ secrets.SLACK_CHANNEL_ID }}"
16+
text: "Created discussion comment: ${{ github.event.comment.html_url }}"
1617
env:
17-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
18+
SLACK_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)