mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Merge pull request #6 from Hestia-Homes/main
Handle issue with workspace already existing
This commit is contained in:
commit
12d788fc1c
1 changed files with 3 additions and 1 deletions
4
.github/workflows/deploy_terraform.yml
vendored
4
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -52,7 +52,9 @@ jobs:
|
|||
run: cd infrastructure/terraform && terraform plan -var-file=${{ github.event.pull_request.base.ref }}.tfvars
|
||||
|
||||
- name: Terraform Workspace
|
||||
run: cd infrastructure/terraform && terraform workspace new ${{ github.event.pull_request.base.ref }}
|
||||
run: |
|
||||
cd infrastructure/terraform
|
||||
terraform workspace select ${{ github.event.pull_request.base.ref }} || terraform workspace new ${{ github.event.pull_request.base.ref }}
|
||||
|
||||
- name: Deploy to Dev
|
||||
if: github.event.pull_request.base.ref == 'dev' && github.event.pull_request.merged == true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue