Skip to content

Commit

Permalink
fix: update terraform script
Browse files Browse the repository at this point in the history
  • Loading branch information
woowahan-neo committed Jan 8, 2025
1 parent 8f8322e commit 737dd68
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@ jobs:
with:
terraform_version: 1.10.3

- name: Select workspace
run: |
ENVIRONMENT=${{ github.event.inputs.environment }}
terraform workspace select "$ENVIRONMENT" || terraform workspace new "$ENVIRONMENT"
- name: Terraform Init and Apply
working-directory: terraform/environments/${{ github.event.inputs.environment }}
env:
TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }}
run: |
Expand Down

0 comments on commit 737dd68

Please sign in to comment.