Commit c118c16
committed
Fix Mattermost notification JSON parsing error
Fixed "Expected property name or '}' in JSON at position 1" error in
Mattermost notification workflows by updating to modern GitHub Actions
output syntax.
Changes:
- Replace deprecated ::set-output with $GITHUB_OUTPUT
- Use PAYLOAD: |- multiline YAML syntax for proper JSON handling
- Applied to both pullrequest-mattermost.yaml and issues-mattermost.yaml
- Matches the working pattern in builds-mattermost.yaml
The deprecated ::set-output command doesn't properly handle JSON with
newlines and special characters. The new approach using $GITHUB_OUTPUT
and multiline YAML syntax preserves JSON structure correctly.1 parent 1b25758 commit c118c16
File tree
2 files changed
+6
-4
lines changed- .github/workflows
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
0 commit comments