fix(action): small typos and weird stuff
Why is it not downloading the previous report?
This commit is contained in:
parent
08d9598c26
commit
c3362d4650
3 changed files with 8 additions and 9 deletions
|
@ -82,9 +82,8 @@ runs:
|
|||
# USAGE: has_report <REPORT_URL>
|
||||
has_report() {
|
||||
http_code=$(curl -X 'GET' -o /dev/null --silent -Iw '%{http_code}' \
|
||||
-H "Authorization: token $GITHUB_TOKEN" \
|
||||
"$1")
|
||||
log "Got code $http_code for $url"
|
||||
"$1" -H "Authorization: token $GITHUB_TOKEN")
|
||||
log "Got code $http_code for $1"
|
||||
test "$http_code" = '200'
|
||||
}
|
||||
|
||||
|
@ -96,8 +95,8 @@ runs:
|
|||
if has_report "$report_url"; then
|
||||
log 'Found previous report, downloading...'
|
||||
curl -X 'GET' \
|
||||
-H "Authorization: token $GITHUB_TOKEN" \
|
||||
"$url/artifacts/$ARTIFACT_NAME" |
|
||||
"$report_url" \
|
||||
-H "Authorization: token $GITHUB_TOKEN" |
|
||||
gunzip > old-report.json
|
||||
log "Reporting on sizes and comparing to sizes in $HEAD_BRANCH"
|
||||
"$GITHUB_ACTION_PATH/comment_on_pr.sh" report.json old-report.json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue