From fd5476dc1178d14065d49250b3889c5e1355e7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Wed, 18 Dec 2024 22:34:17 +0100 Subject: [PATCH] fix(action): print old-report.json or debugging purposes It has an issue? --- action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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'