Skip to content

Commit

Permalink
Split tf and terraform installation due to GITHUB_PATH not loaded unt…
Browse files Browse the repository at this point in the history
…il the next run
  • Loading branch information
rquadling committed Dec 22, 2023
1 parent 80b5a77 commit bd28e1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up tfenv and terraform
- name: Install tfenv
run: |
git clone https://github.com/tfutils/tfenv.git $HOME/.tfenv
echo "$HOME/.tfenv/bin" >> $GITHUB_PATH
- name: Install Terraform v${{ matrix.terraform_version }}
run: |
echo ${{ matrix.terraform_version }} > .terraform-version
tfenv install ${{ matrix.terraform_version }}
tfenv use ${{ matrix.terraform_version }}
Expand Down

0 comments on commit bd28e1f

Please sign in to comment.