Skip to content

Commit

Permalink
gh-actions/
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Oct 1, 2024
1 parent d3ac2d9 commit 38dd537
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gh-actions/github/run/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 38dd537

Please sign in to comment.