Skip to content

[CI] Run blueprints only tf files are updated #83

@carlosrodlop

Description

@carlosrodlop

Community Note

What is the outcome that you are trying to reach?

Do run Blueprints Pipelines ONLY IF:

  • The files from the Main Module get updates
  • The files from the same blueprint are up to date date

Describe the solution you would like

modified_tf_files=$(git show --name-only --oneline HEAD | tail -n +2 | grep '.tf$')

if [ "$modified_tf_files" ]; then
// Run terraform phase
else

It requires to distinguish it the modification happened: at root, bp 01 or bp02

Describe alternatives you have considered

No other alternatives yet

Additional context

No additional context

Metadata

Metadata

Assignees

Labels

choreMaintenance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions