diff --git a/action.yml b/action.yml index 3d4a9d4..c70bc8e 100644 --- a/action.yml +++ b/action.yml @@ -77,8 +77,15 @@ runs: JOB_NAME: ${{ inputs.job-name }} PRIVATE_REPO: ${{ inputs.private-repo-workaround }} run: | + . "${GITHUB_ACTION_PATH}/utils.sh" + if "$GITHUB_ACTION_PATH/retrieve-old-report.sh" && [ -f old-report.json ]; then - log "Reporting on sizes and comparing to sizes in $HEAD_BRANCH" + log "Reporting on sizes and comparing to sizes in $HEAD_BRANCH" + + group 'Old report data' + cat old-report.json + endgroup + "$GITHUB_ACTION_PATH/comment_on_pr.sh" report.json old-report.json else log 'Reporting on sizes'