From 3af5425181a99ea812e3c4e8094dd5357c49bebb Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Fri, 26 Jul 2024 08:43:52 -0700 Subject: [PATCH] disable cleanup by default Signed-off-by: Nianyu Shen --- .github/workflows/build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 35f60cf..9adc25a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,6 +23,11 @@ on: description: "Environment variables to build" required: false default: "" + cleanup: + type: boolean + description: "Cleanup" + required: false + default: false env: IMAGE_REPOSITORY: gcr.io/spectro-dev-public @@ -35,6 +40,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Release space from worker + if: ${{ inputs.cleanup }} run: | echo "Listing top largest packages" pkgs=$(dpkg-query -Wf '${Installed-Size}\t${Package}\t${Status}\n' | awk '$NF == "installed"{print $1 "\t" $2}' | sort -nr)