Skip to content

Commit

Permalink
Another way to create terraformrc
Browse files Browse the repository at this point in the history
  • Loading branch information
dezzzmond committed Jun 19, 2024
1 parent 9736153 commit d5e3aba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,16 @@ jobs:
# container_user: 1000

- name: add .terraformrc
run: echo -e "provider_installation { \n filesystem_mirror { \n path = "$GITHUB_WORKSPACE/providers" \n include = ["registry.terraform.io/*/*"] \n } \n }" > ~./terraformrc
shell: bash
run: |
cat <<EOS >> $HOME/.terraformrc
provider_installation {
filesystem_mirror {
path = "$GITHUB_WORKSPACE/providers"
include = ["registry.terraform.io/*/*"]
}
}
EOS
- name: Lint Terraform
run: terraform fmt -diff -check -recursive
Expand Down

0 comments on commit d5e3aba

Please sign in to comment.