Skip to content

Commit

Permalink
message payload from file
Browse files Browse the repository at this point in the history
  • Loading branch information
ottojolanki committed Nov 15, 2024
1 parent 82bf0e6 commit 4c5ec9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/github-actions-slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ 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}}
text: "Hello, world!"
payload-file-path: slack_message.txt

0 comments on commit 4c5ec9e

Please sign in to comment.