Terence Hampson | 2e177f4 | 2023-10-12 16:31:24 -0400 | [diff] [blame] | 1 | name: Dump disk space info |
| 2 | description: Help debug running out of disk space on github CI |
| 3 | runs: |
| 4 | using: "composite" |
| 5 | steps: |
| 6 | - name: Collect disk info |
| 7 | # Unfortunately current syntax for github wrapper actions only work for |
| 8 | # Javascript actions, and Docker container actions, which doesn't make it |
| 9 | # possible to wrap a shell script like the one below. The action below |
| 10 | # essentially wraps the shell commands we want to run into a Javascript |
| 11 | # wrapped action. This allow us to get the disk info usage before a job |
| 12 | # is run and after the job is run regardless if the job succeeds or |
| 13 | # fails. |
| 14 | uses: pyTooling/Actions/with-post-step@v0.4.5 |
| 15 | if: ${{ runner.os == 'Linux' }} |
| 16 | with: |
| 17 | main: |- |
| 18 | exec ./scripts/dump_diskspace_info.sh |
| 19 | post: |- |
| 20 | exec ./scripts/dump_diskspace_info.sh |