Commit 56ce55a
committed
Fix JSON parsing error in Mattermost notification workflow
The workflow was using deprecated ::set-output syntax to pass JSON payload,
which caused 'Expected property name or } in JSON at position 1' errors.
Changes:
- Removed the intermediate 'Read Content' step that used ::set-output
- Changed from PAYLOAD to PAYLOAD_FILENAME parameter
- Now passes mattermost.json file directly to the action
This approach avoids JSON escaping issues when passing complex payloads
through GitHub Actions outputs. The mattermost-action-notify action
supports PAYLOAD_FILENAME for reading JSON from a file, which is more
reliable than passing JSON strings through output variables.
Fixes: https://github.com/uitsmijter/Documentation/actions/runs/192659800481 parent 671fdb0 commit 56ce55a
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
66 | | - | |
| 63 | + | |
0 commit comments