Skip to content

Commit

Permalink
Use cloudposse-github-actions/install-gh-releases (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha authored Aug 19, 2024
1 parent 9ad18af commit 81b013c
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inputs:
jq-version:
description: The version of jq to install if install-jq is true
required: false
default: "1.6"
default: "1.7"
debug:
description: "Enable action debug mode. Default: 'false'"
default: 'false'
Expand All @@ -46,14 +46,20 @@ outputs:
runs:
using: "composite"
steps:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20

- uses: actions/checkout@v4
with:
ref: ${{ inputs.head-ref }}

- name: Install JQ
uses: dcarbone/[email protected]
- uses: cloudposse-github-actions/install-gh-releases@v1
with:
version: ${{ inputs.jq-version }}
cache: true
config: |-
jqlang/jq: jq-${{ inputs.jq-version }}
- name: Install Atmos
uses: cloudposse/github-action-setup-atmos@v2
Expand Down Expand Up @@ -85,16 +91,13 @@ runs:
terraform_wrapper: false

- name: Install OpenTofu
uses: cloudposse-github-actions/install-gh-releases@v1
if: ${{ steps.config.outputs.opentofu-version != '' && steps.config.outputs.opentofu-version != 'null' }}
uses: opentofu/setup-opentofu@v1
with:
tofu_version: ${{ steps.config.outputs.opentofu-version }}
tofu_wrapper: false

- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: true
config: |-
opentofu/opentofu:
tag: ${{ startsWith(steps.config.outputs.opentofu-version, 'v') && steps.config.outputs.opentofu-version || format('v{0}', steps.config.outputs.opentofu-version) }}
- name: Filter Components
id: selected-components
Expand Down

0 comments on commit 81b013c

Please sign in to comment.