From 749a5b2f22343677019be223ef69d41065261b48 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Thu, 12 Oct 2023 14:44:07 -0700 Subject: [PATCH] feat: allow skipping cli/earthly install steps --- .github/workflows/release.yml | 2 +- actions/setup/action.yml | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8128f6436..e11a5a870 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,7 +59,7 @@ jobs: - name: Setup CI uses: input-output-hk/catalyst-ci/actions/setup@setup-action with: - earthly_version: ${{ inputs.earthly_version }} + earthly_skip_install: "true" - name: Discover Earthly files uses: input-output-hk/catalyst-ci/actions/discover@master id: discover diff --git a/actions/setup/action.yml b/actions/setup/action.yml index ded03816a..f2aba2d77 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -13,6 +13,10 @@ inputs: AWS credentials will not be configured in the environment. required: false default: "" + cli_skip_install: + description: If "true", will skip installing the CI CLI + required: false + default: "false" cli_version: description: The version of the CI CLI to install (defaults to latest) required: false @@ -25,6 +29,10 @@ inputs: not be configured. required: false default: "" + earthly_skip_install: + description: If "true", will skip installing Earthly + required: false + default: "false" earthly_version: description: The version of Earthly to install (defaults to latest) required: false @@ -38,10 +46,12 @@ runs: steps: - name: Install Earthly uses: earthly/actions-setup@v1 + if: ${{ inputs.earthly_skip_install != 'true' }} with: version: ${{ inputs.earthly_version }} - - name: Install CLI + - name: Install CI CLI uses: input-output-hk/catalyst-ci/actions/install@setup-action + if: ${{ inputs.cli_skip_install != 'true' }} with: version: ${{ inputs.cli_version }} - name: Configure AWS Credentials @@ -52,6 +62,6 @@ runs: aws-region: ${{ inputs.aws_region }} - name: Setup Remote Runner uses: input-output-hk/catalyst-ci/actions/configure-runner@setup-action - if: ${{ inputs.earthly_runner_secret != '' }} + if: ${{ inputs.earthly_runner_secret != '' && inputs.earthly_skip_install != 'true' }} with: secret: ${{ inputs.earthly_runner_secret }}