Skip to content

Commit

Permalink
Added terraform
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Abbas Jaffri <[email protected]>
  • Loading branch information
aliabbasjaffri committed Dec 20, 2024
1 parent ffbc0c0 commit d8e22d2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/actions/setup-python/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ runs:
with:
# Install a specific version of uv.
version: "0.4.30"
- name: Install terraform
- name: Get Terraform Version
id: tf_version
run: |
TERRAFORM_VERSION=1.10.2
git clone https://github.com/tfutils/tfenv.git ${HOME}/.tfenv
export PATH="${HOME}/.tfenv/bin:${PATH}"
echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ${HOME}/.profile
tfenv install $TERRAFORM_VERSION
tfenv use $TERRAFORM_VERSION
echo "value=$(cat .terraform-version)" >> $GITHUB_OUTPUT
shell: bash
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ steps.env_name.outputs.value }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit d8e22d2

Please sign in to comment.