Skip to content

Commit

Permalink
Merge pull request #9 from cloudposse/install-tfcmt
Browse files Browse the repository at this point in the history
`tfcmt` and Node on Self-Hosted
  • Loading branch information
milldr authored Jul 8, 2023
2 parents 28c0b4b + 1ec97a2 commit 1ebd20c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ runs:
with:
terraform_version: ${{ inputs.terraform_version }}

- uses: cloudposse/[email protected]
- uses: actions/setup-node@v3
with:
node-version: 16

- uses: cloudposse/github-action-setup-atmos@v1
with:
atmos-version: ${{ inputs.atmos-version }}
token: ${{ inputs.token }}
Expand All @@ -78,12 +82,19 @@ runs:
echo "actions_enabled=false" >> $GITHUB_OUTPUT
fi
# setup-tfcmt requires this PATH update when running on self-hosted (amazon linux)
# https://github.com/shmokmt/actions-setup-tfcmt/blob/main/action.yml#L11C1-L12C1
- name: Update path
shell: bash
run: |
echo "/usr/local/bin" >> $GITHUB_PATH
- name: Setup tfcmt
uses: shmokmt/actions-setup-tfcmt@v2
if: ${{ fromJSON(steps.settings.outputs.actions_enabled) }}
uses: shmokmt/actions-setup-tfcmt@v2
with:
version: v4.4.1

- name: Configure Plan AWS Credentials
if: ${{ fromJSON(steps.settings.outputs.actions_enabled) }}
uses: aws-actions/[email protected]
Expand Down

0 comments on commit 1ebd20c

Please sign in to comment.