Open
Description
Reported by @fleroux514:
When posting a digger command, the workflow (digger) in the master branch is used vs the PR change
- eg Renovate PR that updates Terraform from 136 --> 1.5.1.
- I added a commit in that PR to tell digger to install TF 1.5.1.
- but when I run digger plan it uses digger from the master branch wjth TF 1.3.6 so it fails
- Need to force a synchronize to the branch in order to plan correctly
- But digger apply fails for the same reason
as a workaround, I decided to use the option to install and use tfenv instead of specifying a specific terraform version in digger. But the same problem manifested itself when I tried git apply on that PR, since it uses digger from the master branch which does not install tfenv so my tfenv cmd would fail during apply.
- it’s because github actions uses default branch when running action triggered by pull request comments.
- you will have to update action on the main branch for it to work unfortunately.
- it’s very inconvenient, but apart from eventual move to webhooks not sure if there is much we can do right now
- I will think about it more