Skip to content

Commit 9ced919

Browse files
committed
Fixed refresh
1 parent 54ae257 commit 9ced919

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/sync.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ jobs:
8383
working-directory: terraform
8484
- name: Refresh terraform state
8585
if: ${{ github.event.inputs.refresh == 'true' }}
86-
run:
86+
run: |
8787
echo "{}" > $TF_WORKSPACE.tfstate.json
88-
terraform refresh -lock=$TF_LOCK
88+
terraform apply -refresh-only -auto-approve -lock=$TF_LOCK
89+
working-directory: terraform
8990
- name: Pull terraform state
9091
run: |
9192
terraform show -json > $TF_WORKSPACE.tfstate.json

0 commit comments

Comments
 (0)