From 50f6a2f395f94cfbacec1905af680b005cc63608 Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Fri, 4 Apr 2025 15:43:18 -0700 Subject: [PATCH] fix: update condition for extra_files to check ref length --- github_files.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_files.tf b/github_files.tf index fedea52..b6cb553 100644 --- a/github_files.tf +++ b/github_files.tf @@ -45,7 +45,7 @@ data "github_ref" "ref" { locals { extra_files = concat( var.extra_files, - local.lookup_sha == 1 ? [] : [ + local.lookup_sha == 1 && length(data.github_ref.ref) > 0 ? [] : [ { path = ".TEMPLATE_SHA", content = data.github_ref.ref[0].sha