Skip to content

Commit

Permalink
disable cleanup by default
Browse files Browse the repository at this point in the history
Signed-off-by: Nianyu Shen <[email protected]>
  • Loading branch information
nianyush committed Jul 26, 2024
1 parent b047a4d commit 3af5425
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 3af5425

Please sign in to comment.