-
-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Originally posted by @eumpek in #393 (reply in thread)
I am facing a problem and would appreciate your input.
The workflow I'm trying to set up goes like this
- Dev opens PR and
terraform planis executed onstageenvironment (stage terraform workspace is used too) - Dev merges the PR and
apply(pushtomaster) is executed automatically onstageenvironment. - Another action will run on
pushtomasterpointing to production this time that will executeplan(also nicely posting a comment to the merged PR) - Now I want to manually deploy to prod by running the workflow ( using
workflow_dispatch)
This is where I am blocked. If I try to manually run the workflow on master it's not able to figure out the plan file as you pointed out here. I checked the code, and this is happening because of this line here. If it enters this condition, it will correctly infer the PR number from the associated commit and then fetch the plan file.
Is there a reason that you did not allow workflow_dispatch to enter this condition
Reactions are currently unavailable