diff --git a/gh-actions/github/run/action.yml b/gh-actions/github/run/action.yml index 397f10d5f..d9e24381d 100644 --- a/gh-actions/github/run/action.yml +++ b/gh-actions/github/run/action.yml @@ -56,7 +56,7 @@ inputs: type: string default: | - run: | - echo "disk space at end of build:" + # disk space at end of build df -h > %{{ steps.paths.outputs.report }}/df-post shell: bash source: @@ -401,11 +401,13 @@ runs: json="{}" find "$TMP_REPORT" -type f | while IFS= read -r file; do filename=$(basename "$file") + echo "ADDING REPORT: ${filename}" content=$(< "$file") json=$(jq --arg key "$filename" --arg value "$content" '. + {($key): $value}' <<< "$json") REPORT_OUTPUT="${TMP_REPORT}/report.json" done if [[ -n "$REPORT_OUTPUT" ]]; then + echo "SAVE REPORT: ${REPORT_OUTPUT}" echo "$json" > $REPORT_OUTPUT echo "path=${REPORT_OUTPUT}" >> $GITHUB_OUTPUT fi