From ec174a23c0a79797dd54ac9c1604ba786152fe9c Mon Sep 17 00:00:00 2001 From: Alper Rifat Ulucinar Date: Tue, 12 Mar 2024 16:27:40 +0300 Subject: [PATCH] Add the "Cleanup Disk" step also for the publish-service-artifacts CI job Signed-off-by: Alper Rifat Ulucinar --- .../provider-publish-service-artifacts.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/provider-publish-service-artifacts.yml b/.github/workflows/provider-publish-service-artifacts.yml index 28e91f5..7509c84 100644 --- a/.github/workflows/provider-publish-service-artifacts.yml +++ b/.github/workflows/provider-publish-service-artifacts.yml @@ -38,6 +38,11 @@ on: default: '1.20' required: false type: string + cleanup-disk: + description: "If set to true, an initial step will be run to reclaim some extra disk space for the build/test jobs in this workflow" + required: false + type: boolean + default: false secrets: UPBOUND_MARKETPLACE_PUSH_ROBOT_USR: required: true @@ -73,6 +78,17 @@ jobs: needs: index runs-on: [e2-standard-8, linux] steps: + - name: Cleanup Disk + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 + if: ${{ inputs.cleanup-disk }} + with: + android: true + dotnet: true + haskell: true + tool-cache: true + large-packages: false + swap-storage: false + - name: Setup QEMU uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2 with: