blob: 1f6474e54c4656375ea5d067df5896c207219ca5 [file] [log] [blame]
Terence Hampson2e177f42023-10-12 16:31:24 -04001name: Dump disk space info
2description: Help debug running out of disk space on github CI
3runs:
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