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 <ludomagno@google.com>
This commit is contained in:
Anton KOVACH
2023-03-05 19:16:48 +01:00
committed by GitHub
parent d3a6c9d1f1
commit e72ddb6a2a

View File

@@ -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,
]
}
}