Skip to content

Commit

Permalink
fix: add --or-create workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
shejri committed Sep 18, 2024
1 parent 31300b1 commit 867f553
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
description: Terraform directory to apply
required: true
options:
- terraform-init
- terraform
- terraform-init
workspace:
type: choice
description: Terraform workspace used for staging
Expand Down Expand Up @@ -56,8 +56,7 @@ jobs:
terraform init --backend-config=config.azurerm.tfbackend
terraform workspace list
terraform workspace new ${{github.event.inputs.workspace}}
terraform workspace select ${{github.event.inputs.workspace}}
terraform workspace select --or-create ${{github.event.inputs.workspace}}
terraform workspace show
- name: 'Terraform Plan'
Expand Down

0 comments on commit 867f553

Please sign in to comment.