I am trying to write a workflow.yml for payload-file-path in slackapi/[email protected] Github actions. I am using payload-file-path instead of payload. While I tried to run the workflow file I am getting this error
Error Message –
Run Tests
Error: The payload-file-path may be incorrect. Failed to load the file: .github/resources/payload-slack-content.json
Workflow file code –
- name: Slack Notification
id: slackPayloadFile
uses: slackapi/[email protected]
with:
payload-file-path: ./.github/resources/payload-slack-content.json
Complete logs –
Run slackapi/[email protected]
[Error: ENOENT: no such file or directory, open '/home/runner/work/actions/actions/.github/resources/payload-slack-content.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/runner/work/actions/actions/.github/resources/payload-slack-content.json'
}
Error: Error: The payload-file-path may be incorrect. Failed to load the file: .github/resources/payload-slack-content.json
Any help on this please? I am using this technique of slack-api github actions – https://github.com/slackapi/slack-github-action#technique-3-slack-incoming-webhook
Tried changing path formats but didn’t work
2