From e72ddb6a2a642b29216e2147d94d220aa11da59a Mon Sep 17 00:00:00 2001 From: Anton KOVACH <2207136+antonkovach@users.noreply.github.com> Date: Sun, 5 Mar 2023 19:16:48 +0100 Subject: [PATCH] feat: Add option to skip committing unchanged files in 0-cicd-github (#1212) When running 0-cicd-github multiple times, files that haven't changed are also committed. This change adds an option to skip committing unchanged files to prevent unnecessary commits. Co-authored-by: Ludovico Magnocavallo --- fast/extras/0-cicd-github/main.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fast/extras/0-cicd-github/main.tf b/fast/extras/0-cicd-github/main.tf index 3c42b5cf..81739cc6 100644 --- a/fast/extras/0-cicd-github/main.tf +++ b/fast/extras/0-cicd-github/main.tf @@ -154,4 +154,10 @@ resource "github_repository_file" "default" { commit_author = var.commmit_config.author commit_email = var.commmit_config.email overwrite_on_create = true + + lifecycle { + ignore_changes = [ + content, + ] + } }