Skip to content

Commit

Permalink
Directory argument seems borked
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Jan 2, 2024
1 parent 9688925 commit bffcfe1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/terraform-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,20 @@ jobs:

- uses: hashicorp/tfc-workflows-github/actions/[email protected]
id: upload
working-directory: ${{ env.CONFIG_DIRECTORY }}
with:
workspace: ${{ env.TF_WORKSPACE }}
directory: ${{ env.CONFIG_DIRECTORY }}

- uses: hashicorp/tfc-workflows-github/actions/[email protected]
id: create-run
working-directory: ${{ env.CONFIG_DIRECTORY }}
with:
workspace: ${{ env.TF_WORKSPACE }}
configuration_version: ${{ steps.upload.outputs.configuration_version_id }}

- uses: hashicorp/tfc-workflows-github/actions/[email protected]
id: apply
working-directory: ${{ env.CONFIG_DIRECTORY }}
if: ${{ fromJSON(steps.create-run.outputs.payload).data.attributes.actions.IsConfirmable }}
with:
run: ${{ steps.create-run.outputs.run_id }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/terraform-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,14 @@ jobs:

- uses: hashicorp/tfc-workflows-github/actions/[email protected]
id: upload
working-directory: ${{ env.CONFIG_DIRECTORY }}
with:
workspace: ${{ env.TF_WORKSPACE }}
directory: ${{ env.CONFIG_DIRECTORY }}
speculative: true

- uses: hashicorp/tfc-workflows-github/actions/[email protected]
id: run
working-directory: ${{ env.CONFIG_DIRECTORY }}
## run may fail, if so continue to output PR comment
## step.terraform-cloud-check-run-status will fail job after pr comment is created/updated.
continue-on-error: true
Expand All @@ -89,6 +90,7 @@ jobs:

- uses: hashicorp/tfc-workflows-github/actions/[email protected]
id: plan-output
working-directory: ${{ env.CONFIG_DIRECTORY }}
with:
plan: ${{ steps.run.outputs.plan_id }}

Expand Down

0 comments on commit bffcfe1

Please sign in to comment.