Skip to content

Commit c038e2e

Browse files
authored
fix: slack messages action migration (#448)
2 parents 11f57e2 + 8aca3b5 commit c038e2e

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ runs:
1616
using: "composite"
1717
steps:
1818
- name: Send Slack notification
19-
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2
19+
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+
channel: "${{ inputs.channel-id }}"
25+
text: "${{ inputs.message }}"

0 commit comments

Comments
 (0)