Skip to content

Commit 26a5dfa

Browse files
committed
fail via bash?
1 parent 12317e1 commit 26a5dfa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hack/release/verify-emoji.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ base_link=$(jq -r '.pull_request.url' < ${GITHUB_EVENT_PATH})
2525
head_commit=$(curl -H "Authorization: Bearer ${GITHUB_TOKEN}" -H 'Accept: application/vnd.github.antiope-preview+json' -q ${base_link} | jq -r '.head.sha')
2626
echo "head commit is ${head_commit}"
2727

28-
curl --fail https://api.github.com/repos/${GITHUB_REPOSITORY}/check-runs -XPOST -H "Authorization: Bearer ${GITHUB_TOKEN}" -H 'Accept: application/vnd.github.antiope-preview+json' -H 'Content-Type: application/json' -q --data-raw '{"name": "Verify Emoji", "head_sha": "'${head_commit}'", "conclusion": "'${conclusion}'", "status": "completed", "completed_at": "'$(date -Iseconds)'", "output": {"title": "Verify Emoji", "summary": "'"${summary}"'"}}'
28+
echo ${summary}
29+
30+
if [[ ${conclusion} == "failure" ]]; then
31+
exit 1
32+
else
33+
exit 0
34+
fi

0 commit comments

Comments
 (0)