Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/actions/job-preamble/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ runs:
git config --global --add safe.directory "$(pwd)"
shell: bash

- name: Monitor disk usage
shell: bash
run: |
(while sleep 30; do echo "$(date -u +%H:%M:%S) $(df -BGB --output=avail / | tail -1)"; done) \
>> /dev/shm/disk-monitor.log 2>&1 &
echo $! > /dev/shm/disk-monitor.pid

- name: Record job info
uses: gacts/run-and-post-run@d803f6920adc9a47eeac4cb6c93dbc2e2890c684 # v1.4.0
id: record_job_info
Expand All @@ -165,3 +172,5 @@ runs:
du -k / 2>/dev/null | sort -V | tail -100 || true; \
printf "Low free disk space post-job: ${free}" | tee -a "$GITHUB_STEP_SUMMARY";\
fi;
cat /dev/shm/disk-monitor.log;
kill $(</dev/shm/disk-monitor.pid)
Loading