Skip to content

Commit

Permalink
Merge pull request #23 from FIAP-3SOAT-G15/fix-workflow-dispatch
Browse files Browse the repository at this point in the history
Fix workflow dispatch
  • Loading branch information
wellyfrs authored Aug 7, 2024
2 parents 74cadea + 1e2d369 commit 885df9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/provision.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Provision

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -13,7 +14,6 @@ on:
paths:
- .github/workflows/provision.yml
- 'terraform/**'
workflow_dispatch:

jobs:
provision:
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variable "region" {
type = string
type = string
default = "us-east-1"
}

Expand Down

0 comments on commit 885df9d

Please sign in to comment.