From c4bfe1d168a2237280f95270ffb6dbde21e8c9ed Mon Sep 17 00:00:00 2001 From: Kyle Kotowick Date: Tue, 10 Sep 2024 15:58:30 -0400 Subject: [PATCH] Update actions version --- .github/workflows/CICD.yml | 6 +++--- main.tf | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 364a756..856ab04 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Generate Matrix id: matrix - uses: Invicton-Labs/terraform-module-testing/matrix@dev + uses: Invicton-Labs/terraform-module-testing/matrix@v0.2.2 with: minimum_tf_version: '1.9.5' @@ -28,12 +28,12 @@ jobs: steps: - name: Initialize - Pass id: init - uses: Invicton-Labs/terraform-module-testing/initialize@dev + uses: Invicton-Labs/terraform-module-testing/initialize@v0.2.2 with: tf_path: tests - name: Run Tests - Pass id: tests - uses: Invicton-Labs/terraform-module-testing/apply-destroy@dev + uses: Invicton-Labs/terraform-module-testing/apply-destroy@v0.2.2 with: tf_path: tests diff --git a/main.tf b/main.tf index c8f450c..118f4cb 100644 --- a/main.tf +++ b/main.tf @@ -89,7 +89,7 @@ data "external" "create_file_chunk" { } ) // Force the data source to wait for the apply, if that is what is desired - working_dir = (jsonencode(var.dynamic_depends_on) != "" ? true : false) && ((var.force_wait_for_apply ? uuid() : "") == "") ? "${path.module}/tmpfiles" : "${path.module}/tmpfiles" + working_dir = (md5(jsonencode(var.dynamic_depends_on)) != md5("") ? true : false) && ((var.force_wait_for_apply ? uuid() : "") == "") ? "${path.module}/tmpfiles" : "${path.module}/tmpfiles" } data "external" "delete_file" { @@ -102,7 +102,7 @@ data "external" "delete_file" { // The ternary is to force the data source to wait for all dependencies to be done before evaluating. // Since it's jsonencoding a list, it will never be an empty string, but the runtime doesn't know that... - query = jsonencode(var.delete_after) != "[]" ? (local.is_windows ? + query = md5(jsonencode(var.delete_after)) != md5("") ? (local.is_windows ? merge( local.query, {