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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

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