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 fa38512 commit 4469708Copy full SHA for 4469708
utils/webassembly/distribute-latest-toolchain.sh
@@ -13,6 +13,12 @@ github() {
13
14
latest_run=$(github "${gh_api}/repos/${repository}/actions/workflows/${workflow_name}/runs?head_branch=${branch}&status=completed&conclusion=success" \
15
| jq ".workflow_runs | map(select(.head_branch == \"$branch\")) | sort_by(.run_number) | last")
16
+
17
+if [ -z "$latest_run" ] || [ "$latest_run" == "null" ]; then
18
+ echo "No successful runs available"
19
+ exit 0
20
+fi
21
22
artifacts_url=$(echo $latest_run | jq .artifacts_url --raw-output)
23
head_sha=$(echo $latest_run | jq .head_sha --raw-output)
24
0 commit comments