Skip to content

Commit 19762a2

Browse files
committed
fix slack notification action
1 parent ca39c53 commit 19762a2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/actions/slack-notification/action.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ runs:
1818
- name: Send Slack notification
1919
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2
2020
with:
21-
channel-id: ${{ inputs.channel-id }}
22-
slack-message: ${{ inputs.message }}
23-
env:
24-
SLACK_BOT_TOKEN: ${{ inputs.bot-token }}
21+
method: chat.postMessage
22+
token: ${{ inputs.bot-token }}
23+
payload: |
24+
{
25+
"channel": "${{ inputs.channel-id }}",
26+
"text": "${{ inputs.message }}"
27+
}

0 commit comments

Comments
 (0)