fix(action): print old-report.json or debugging purposes

It has an issue?
This commit is contained in:
Jalil David Salamé Messina 2024-12-18 22:34:17 +01:00
parent 72a3513f46
commit fd5476dc11
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -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'