Skip to content

message payload from file #3

message payload from file

message payload from file #3

on: [push]
jobs:
slack:
runs-on: ubuntu-latest
steps:
- name: Create the slack message
run: |
echo "Example message" > slack_message.txt
- name: Post a message to Slack
uses: slackapi/slack-github-action@v2.0.0
with:
method: chat.postMessage
token: ${{secrets.SUBMITTER_HELPDESK_SLACK_BOT_TOKEN}}
payload: |
channel: ${{secrets.TEST_CHANNEL_ID}}
payload-file-path: slack_message.txt