We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c2c08 commit 06d36f9Copy full SHA for 06d36f9
scripts/report_logs_in_comment.sh
@@ -132,13 +132,13 @@ echo " }"
132
echo "}"
133
} >> data.json
134
135
-# Send GitHub request to post a PR comment
136
-curl \
137
- --request POST \
138
- --url https://api.github.com/repos/"$repository_name"/dispatches \
139
- --header "Accept: application/vnd.github.everest-preview+json" \
140
- --header "Authorization: token $github_pat" \
141
- --data "@data.json"
+curl -L \
+ -X POST \
+ -H "Accept: application/vnd.github+json" \
+ -H "Authorization: Bearer $github_pat" \
+ -H "X-GitHub-Api-Version: 2022-11-28" \
+ https://api.github.com/repos/"$repository_name"/dispatches \
+ --data "@data.json"
142
143
# Clean up
144
rm data.json
0 commit comments