Skip to content

Commit

Permalink
fix: Ensure Terraform is installed
Browse files Browse the repository at this point in the history
Terraform is removed from the latest 24.04 runner image, ensure it's installed explicitly.
  • Loading branch information
andrewmooreio authored Oct 14, 2024
1 parent 8712624 commit b5caae8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code-formatter/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
description: "Files to ignore"
required: false
default: ""
terraform-version:
description: "Version of Terraform to use for formatting"
required: false
default: "latest"
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -108,6 +112,12 @@ runs:
fi
shell: bash

- name: Setup Terraform
uses: hashicorp/[email protected] # v3.1.2
with:
terraform_version: "${{ inputs.terraform-version }}"
terraform_wrapper: false

- name: Get PR changed files via Git and code format files
run: |
if [[ ${{ steps.branch-exists.outputs.result }} == 0 ]];
Expand Down

0 comments on commit b5caae8

Please sign in to comment.