-
Notifications
You must be signed in to change notification settings - Fork 921
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
Avoid unnecessary terraform plans for closed (unmerged) PRs #2294
Avoid unnecessary terraform plans for closed (unmerged) PRs #2294
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
…runs-unmerged-prs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice, thanks for addressing this!
Unfortunately, to work around Windows inabilty to support symlinks we've had to copy these templates in stages 0 and 1. Can you make sure the changes is applied there too?
@ludoo does it make sense to try to replicate the same functionality in the gitlab workflow? |
…wf-runs-unmerged-prs' into pbrumblay/avoid-gh-wf-runs-unmerged-prs
@lodoo - I've updated the other three files in stages 0 and 1 for this PR. |
Thanks!!! We will log an issue to trakc this for gitlab too, as Julio suggests. I'll put this on automerge so it should go in as soon as all tests pass. |
Checks seem to be stuck for some reason... |
This change avoids unnecessary terraform plan operations.
When closing a PR without merging, the github workflow still kicks off and runs a terraform plan. This is a minor issue, but it surprised me. In this PR I've added a conditional check to avoid running unnecessary plans when a PR is discarded.
Checklist
I applicable, I acknowledge that I have:
terraform fmt
on all modified filestools/tfdoc.py