Skip to content

Commit 6963766

Browse files
authored
ci/diskspace: Remount /mnt before binding (#41779)
hopefully this will clear the "full" disk issue: actions/runner#3968 --------- Signed-off-by: Ryan Northey <[email protected]>
1 parent 98561c5 commit 6963766

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/_run.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@ jobs:
234234
235235
- run: |
236236
mkdir ${{ runner.temp }}/container
237+
if mountpoint -q /mnt; then
238+
USAGE="$(df --output=pcent /mnt | tail -n 1 | tr -d ' %')"
239+
if [[ "$USAGE" -ge 100 ]]; then
240+
echo "should-remnt=true" >> "$GITHUB_OUTPUT"
241+
echo "::warning::Disk usage for /mnt is at 100% ... remounting"
242+
fi
243+
fi
244+
id: disk
245+
- uses: envoyproxy/toolshed/gh-actions/github/[email protected]
246+
if: steps.disk.outputs.should-remnt == 'true'
237247
- uses: envoyproxy/toolshed/gh-actions/[email protected]
238248
if: inputs.bind-mount
239249
with:

0 commit comments

Comments
 (0)