From d5e3abae78a61f2a413643e8596f7061e96d0705 Mon Sep 17 00:00:00 2001 From: Yury Logunov Date: Wed, 19 Jun 2024 18:08:19 +0300 Subject: [PATCH] Another way to create terraformrc --- .github/workflows/modules.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/modules.yml b/.github/workflows/modules.yml index 99339c6..51400a1 100644 --- a/.github/workflows/modules.yml +++ b/.github/workflows/modules.yml @@ -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 <> $HOME/.terraformrc + provider_installation { + filesystem_mirror { + path = "$GITHUB_WORKSPACE/providers" + include = ["registry.terraform.io/*/*"] + } + } + EOS - name: Lint Terraform run: terraform fmt -diff -check -recursive