File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 34
34
artifacts_url=$( echo $latest_run | jq .artifacts_url --raw-output)
35
35
head_sha=$( echo $latest_run | jq .head_sha --raw-output)
36
36
37
+ dispatch_release_event () {
38
+ local release_id=$1
39
+ local body=$( cat << EOS
40
+ {
41
+ "event_type": "release_created",
42
+ "client_payload": {
43
+ "toolchain_channel": "$channel ",
44
+ "ref": "$head_sha ",
45
+ "release_id": "$release_id "
46
+ }
47
+ }
48
+ EOS
49
+ )
50
+
51
+ github --request POST --fail \
52
+ --url " ${gh_api} /repos/swiftwasm/swiftwasm-buildbot/dispatches" \
53
+ --data " $body "
54
+ }
55
+
37
56
get_artifact_url () {
38
57
local name=$1
39
58
github $artifacts_url --fail | jq " .artifacts[] | select(.name == \" $name \" ) | .archive_download_url" | sed ' s/\"//g'
@@ -225,4 +244,6 @@ for package in ${release_packages[@]}; do
225
244
upload_tarball $release_id " $package "
226
245
done
227
246
247
+ dispatch_release_event " $release_id "
248
+
228
249
popd
You can’t perform that action at this time.
0 commit comments