Skip to content

Commit

Permalink
feat: Add option to skip committing unchanged files in 0-cicd-github (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
antonkovach and ludoo authored Mar 5, 2023
1 parent d3a6c9d commit e72ddb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fast/extras/0-cicd-github/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
}
}

0 comments on commit e72ddb6

Please sign in to comment.