From 1e2d369ae31b28988d48e656b1397ce316a511f9 Mon Sep 17 00:00:00 2001 From: Wellyson Freitas Date: Wed, 7 Aug 2024 22:02:12 +0200 Subject: [PATCH] Fix workflow dispatch --- .github/workflows/provision.yml | 4 ++-- terraform/variables.tf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/provision.yml b/.github/workflows/provision.yml index 926a236..eae6ce9 100644 --- a/.github/workflows/provision.yml +++ b/.github/workflows/provision.yml @@ -1,6 +1,7 @@ name: Provision on: + workflow_dispatch: push: branches: - main @@ -13,7 +14,6 @@ on: paths: - .github/workflows/provision.yml - 'terraform/**' - workflow_dispatch: jobs: provision: @@ -63,5 +63,5 @@ jobs: run: exit 1 - name: Terraform Apply - if: github.ref == 'refs/heads/main' && github.event_name == 'push' + if: (github.ref == 'refs/heads/main' && github.event_name == 'push') || github.event_name == 'workflow_dispatch' run: terraform apply -auto-approve -input=false diff --git a/terraform/variables.tf b/terraform/variables.tf index 109e7c1..39424d8 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,5 +1,5 @@ variable "region" { - type = string + type = string default = "us-east-1" }