From eaa211a621866916d14ede701f0072a467af1dd2 Mon Sep 17 00:00:00 2001 From: Henrik Simonsen Knutsen <46495473+hknutsen@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:27:38 +0100 Subject: [PATCH] fix(terraform): include plugins downloaded from cache in artifact (#591) When enabling the plugin cache, Terraform will create symbolic links in the current working directory to the plugin cache directory. As a result, the plugin cache directory must be included in the artifact to be download by the Terraform Apply job. --- .github/workflows/terraform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 83edc03f..655602ea 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -132,7 +132,7 @@ jobs: - name: Create Terraform plugin cache id: mkdir run: | - plugin_cache_dir="$RUNNER_TEMP/.terraform.d/plugin-cache" + plugin_cache_dir=".terraform.d/plugin-cache" mkdir --parents "$plugin_cache_dir" echo "plugin_cache_dir=$plugin_cache_dir" >> "$GITHUB_OUTPUT"