Skip to content

Commit 87b64e7

Browse files
committed
Add check if release-status checkrun was found
1 parent 5e4bb2a commit 87b64e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/update-release-status.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ jobs:
3838
--jq '.check_runs[] | select(.name == "release-status") | {id: .id, status: .status, conclusion: .conclusion}' \
3939
/repos/$GITHUB_REPOSITORY/commits/$HEAD_SHA/check-runs)
4040
41+
if [[ -z "$check_run_info" ]]; then
42+
echo "No release status check run found"
43+
exit 1
44+
fi
45+
4146
check_run_id=$(echo "$check_run_info" | jq -r '.id')
4247
check_run_status=$(echo "$check_run_info" | jq -r '.status')
4348
check_run_conclusion=$(echo "$check_run_info" | jq -r '.conclusion')

0 commit comments

Comments
 (0)