docs: include information on the payload file path argument

This commit is contained in:
@zimeg
2024-10-25 15:02:22 -07:00
parent 63a34158de
commit 06555c35fd
+14
View File
@@ -109,6 +109,20 @@ the job is started:
option: "false"
```
##### Gathering details of the payload from a saved file
Input values for the payload to be sent can also be provided in a file, either
in JSON or YAML format:
```yaml
- name: Send custom JSON data to Slack workflow
uses: slackapi/slack-github-action@v2-development
with:
payload-file-path: "./artifacts.json"
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
```
### Technique 2: Slack API method
A bot token or user token or [token of some other kind][tokens] can be used to