diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 6e7df42c1..6a67dc311 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -58,7 +58,7 @@ jobs: - *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`; + *Pusher: @${{ github.actor }}, Destination branch: @${{ github.ref }}, Action: \`${{ github.event_name }}\`*`; github.issues.createComment({ issue_number: context.issue.number, @@ -72,5 +72,5 @@ jobs: run: exit 1 - name: Terraform Apply - if: github.ref == 'refs/heads/main' && github.event_name == 'push' + #if: github.ref == 'refs/heads/master' && github.event_name == 'push' run: terraform apply -auto-approve diff --git a/main.tf b/main.tf index e1d1b8045..c8c8d58e0 100644 --- a/main.tf +++ b/main.tf @@ -11,13 +11,15 @@ terraform { } required_version = "~> 1.0" - backend "remote" { - organization = "REPLACE_ME" + cloud { + organization = "UX_HCP" workspaces { - name = "REPLACE_ME" + # name = "aws-static-site" + name = "demo-github-actions" } } + }