Skip to content

Commit

Permalink
fix: replace + with coalesce operator (//)
Browse files Browse the repository at this point in the history
  • Loading branch information
leio10 committed Apr 16, 2020
1 parent 1c2574a commit d16eafe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/upload_coverage.sh
Expand Up @@ -3,8 +3,8 @@
REPORT_NAME=$1
EVENT_PAYLOAD_FILE=$2

PRID=`jq ".number + .check_run.pull_requests[0].number" $EVENT_PAYLOAD_FILE`
SHA=`jq -r ".pull_request.head.sha + .check_run.head_sha + .after" $EVENT_PAYLOAD_FILE`
PRID=`jq ".number // .check_run.pull_requests[0].number" $EVENT_PAYLOAD_FILE`
SHA=`jq -r ".pull_request.head.sha // .check_run.head_sha // .after" $EVENT_PAYLOAD_FILE`

if [ $PRID = "null" ]
then
Expand Down

0 comments on commit d16eafe

Please sign in to comment.