File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,6 @@ name: 'OpenTofu: Plan/Apply'
2
2
3
3
on :
4
4
workflow_call :
5
- inputs :
6
- runs_on :
7
- description : ' Runner JSON string'
8
- default : ' "ubuntu-latest"'
9
- type : string
10
5
outputs :
11
6
tf_plan_exit_code :
12
7
description : ' OpenTofu Plan exit code'
@@ -24,7 +19,7 @@ permissions:
24
19
jobs :
25
20
tofu-plan :
26
21
name : ' OpenTofu Plan'
27
- runs-on : ${{ fromJSON(inputs.runs_on) }}
22
+ runs-on : ["self-hosted", " ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}" ]
28
23
environment : ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
29
24
env :
30
25
ENVIRONMENT_NAME : ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
97
92
name : ' OpenTofu Apply'
98
93
needs : [tofu-plan]
99
94
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
- runs-on : ${{ fromJSON(inputs.runs_on) }}
95
+ runs-on : ["self-hosted", " ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}" ]
101
96
environment : ${{ github.ref_name }}
102
97
env :
103
98
ENVIRONMENT_NAME : ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments