Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed or
  • Loading branch information
rohankh532 committed Apr 27, 2022
commit d212fe2cfa33167bc24bcf805d093c929425b9b4
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export ENABLED_CHECKS=
# Boolean inputs are strings https://github.com/actions/runner/issues/1483.
# ===============================================================================
status_code=$(curl -s -H "Authorization: Bearer $GITHUB_AUTH_TOKEN" https://api.github.com/repos/"$GITHUB_REPOSITORY" -o repo_info.json -w '%{http_code}')
if [$status_code -lt 200 ] || [ $status_code -ge 300 ]; then
if [[$status_code -lt 200 || $status_code -ge 300 ]]; then
error_msg=$(jq -r .message repo_info.json 2>/dev/null || echo 'unknown error')
echo "Failed to get repository information from GitHub, response $status_code: $error_msg"
echo "$(<repo_info.json)"
Expand Down