Skip to content

Commit

Permalink
feat: allow skipping cli/earthly install steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Oct 12, 2023
1 parent df08de0 commit 749a5b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 12 additions & 2 deletions actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit 749a5b2

Please sign in to comment.