From 305273971b397c8e9a73524600ec63672ed95227 Mon Sep 17 00:00:00 2001 From: xyny <60004820+xynydev@users.noreply.github.com> Date: Fri, 23 Feb 2024 17:46:23 +0000 Subject: [PATCH] feat: make maximizing build space optional (#18) * feat: make maximizing build space optional Reasoning: many users don't need this, but it takes kind of a long time. #16 * fix: use singlequotes for strings * docs: use singlequotes in description --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index 878e24d..f9cee46 100644 --- a/action.yml +++ b/action.yml @@ -24,6 +24,13 @@ inputs: Example: `${{ github.event.number }}` required: true + maximize_build_space: + description: | + Whether to run the unwanted software remover to maximize build space in the GitHub builder. + Use this if your builds are taking too much space. + Input must match the string 'true' for the step to be enabled. + required: false + default: 'false' registry: description: | The container registry to push the built image to. @@ -43,6 +50,7 @@ runs: # so it's best to remove unneeded softawre - name: Maximize build space uses: ublue-os/remove-unwanted-software@v6 + if: ${{ inputs.maximize_build_space == 'true' }} # clones user's repo - uses: actions/checkout@v4