Skip to content

Commit

Permalink
Merge pull request #26 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 278d351 + e1b0f0f commit b0f0021
Showing 1 changed file with 2 additions and 2 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

0 comments on commit b0f0021

Please sign in to comment.