diff --git a/github_files.tf b/github_files.tf index fdd479e..e526711 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 && length(data.github_ref.ref) > 0 && data.github_ref.ref[0] != null ? [] : [ + local.lookup_sha == 1 && length(data.github_ref.ref) > 0 && length(data.github_ref.ref) == 0 ? [] : [ { path = ".TEMPLATE_SHA", content = local.lookup_sha == 1 && length(data.github_ref.ref) > 0 ? data.github_ref.ref[0].sha : ""