Skip to content

Commit

Permalink
Run terraform show in correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
carlssonk committed Sep 24, 2024
1 parent 85bbd43 commit 920467f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ jobs:
id: set-tf-state
if: matrix.step == 'resources' && github.event_name != 'workflow_dispatch'
run: |
terraform show -json > terraform_show.json
echo "$(cat terraform_show.json)"
terraform show -json | sed -n "2p" > terraform_show.json
echo "terraform_state_json=$(cat terraform_show.json)" >> $GITHUB_OUTPUT
working-directory: ${{ env.TF_ROOT_DIRECTORY }}

- name: Delay for 15 seconds
if: matrix.step == 'iam' && github.event_name != 'workflow_dispatch'
Expand Down

0 comments on commit 920467f

Please sign in to comment.