diff --git a/.github/workflows/terraform_schedule_plan_destroy.yaml b/.github/workflows/terraform_schedule_plan_destroy.yaml index 55717a8..d2dfb03 100644 --- a/.github/workflows/terraform_schedule_plan_destroy.yaml +++ b/.github/workflows/terraform_schedule_plan_destroy.yaml @@ -29,7 +29,7 @@ jobs: AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} - name: Delete some resources on the state file - run: terraform state rm $(terraform state list | grep 'argocd_application\|argocd_project\|kubernetes_\|helm_') + run: terraform state rm $(terraform-bin state list | grep 'argocd_application\|argocd_project\|kubernetes_\|helm_') continue-on-error: true # This is to avoid failed workflows and the consequent noise when the scheduled destroy runs on the days we have not created the test deployment env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}