File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 87
87
88
88
# Save plan to artifacts
89
89
- name : Publish OpenTofu Plan
90
- if : ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
90
+ if : ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.merged }}
91
91
uses : actions/upload-artifact@v4
92
92
with :
93
93
name : tfplan
96
96
tofu-apply :
97
97
name : ' OpenTofu Apply'
98
98
needs : [tofu-plan]
99
- if : ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && needs.tofu-plan.outputs.tf_plan_exit_code == 2 }}
99
+ if : ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.merged ) && needs.tofu-plan.outputs.tf_plan_exit_code == 2 }}
100
100
runs-on : ${{ fromJSON(inputs.runs_on) }}
101
101
environment : ${{ github.ref_name }}
102
102
env :
You can’t perform that action at this time.
0 commit comments