Skip to content

Commit a1c7973

Browse files
committed
Remove /opt/hostedtoolcache from image to mitigate GH Action 'no space left on device' error
1 parent c078076 commit a1c7973

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build-image.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ jobs:
6666
image_ref: ${{ steps.env_var.outputs.image_ref }}
6767

6868
steps:
69+
steps:
70+
- name: Delete huge unnecessary tools folder
71+
run: rm -rf /opt/hostedtoolcache
72+
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
73+
6974
- name: Checkout Repository
7075
uses: actions/checkout@v2
7176

0 commit comments

Comments
 (0)