Open jamengual opened 1 year ago
A Pr must exist in order to plan so maybe my problem is that the name: Force a terraform PR
action in the README needs to run first to create a PR what then the drifter uses to run plan against? but if that was the case I do not see a reference of a PR number on the drifter code.
Please help me to understand the sequence of events, or if I need additional configs.
Thanks.
ok, so I managed to implement this after fixing a few bugs. There is still a bug on the API in Atlantis that needs to be addressed to make this more usable which is related to no such file or directory
, how did you workaround it?
for reference: https://github.com/runatlantis/atlantis/issues/2949
@jamengual did you manage to actually workaround this? It seems to be serious blocker for this project's functionality
There is a PR in flight with an attempt to fix this but it might not be the best approach. We are working on a more core solution to locks and workspaces in general.
The workaround for me was to create the dir semi-automatically.
I'll see if something changed. /0 used to work as an acceptable default. The main problem I was trying to solve was that I wasn't sure what number to use when I make a plan so I used a PR number that I knew was safe.
For some reason when the github action run it tries to find the PR 0 on the workspace directory in the atlantis server, if I create the dir manually it seems to work but I do not know if this is an atlantis issue or the drifter action needs to send more data to the API?
this is the error: