Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carlosrodlop opened this issue Mar 17, 2024 · 0 comments
Open

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

carlosrodlop opened this issue Mar 17, 2024 · 0 comments
Assignees
Labels
chore Maintenance

Comments

@carlosrodlop
Copy link
Collaborator

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

@carlosrodlop carlosrodlop changed the title [CI] Run blueprints one their file chnages [CI] Run blueprints only tf files are updated Mar 17, 2024
@carlosrodlop carlosrodlop added enhancement New feature or request chore Maintenance and removed enhancement New feature or request labels Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance
Projects
None yet
Development

No branches or pull requests

2 participants