Skip to content

Commit e0ecac7

Browse files
committed
Use event input directly.
1 parent 8297ff6 commit e0ecac7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/plan.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
environment:
2424
name: ${{ github.event.inputs.environment }}
2525
steps:
26+
- name: Config Directory
27+
run: echo "Tofu config directory ./terraform/config/${{ github.event.inputs.environment }}"
28+
2629
- name: Checkout
2730
uses: actions/checkout@v5
2831

@@ -44,15 +47,15 @@ jobs:
4447
uses: opentofu/setup-opentofu@v1
4548

4649
- name: Initialize OpenTofu
47-
working-directory: ./terraform/config/${{ needs.determine_environment.outputs.env_name }}
50+
working-directory: ./terraform/config/${{ github.event.inputs.environment }}
4851
run: tofu init
4952

5053
- name: Get OpenTofu version
51-
working-directory: ./terraform/config/${{ needs.determine_environment.outputs.env_name }}
54+
working-directory: ./terraform/config/${{ github.event.inputs.environment }}
5255
run: tofu --version
5356

5457
- name: Apply tofu plan
55-
working-directory: ./terraform/config/${{ needs.determine_environment.outputs.env_name }}
58+
working-directory: ./terraform/config/${{ github.event.inputs.environment }}
5659
run: tofu plan -input=false
5760

5861
- name: Output stderr

0 commit comments

Comments
 (0)