Skip to content

Commit c266288

Browse files
authored
Merge pull request #1174 from mendix/moo/moo-2235/fix-slack-messaging
add new slack action to test
2 parents 11e9728 + b1a2129 commit c266288

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)