Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
aws-iam-role-arn:
required: true
type: string
provision-on-main:
required: false
type: boolean
default: true
secrets:
github-token:
description: Token to download Terraform modules from GitHub
Expand Down Expand Up @@ -45,7 +49,7 @@ jobs:
run: terraform fmt -check

provision:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
if: ${{ inputs.provision-on-main && github.ref == 'refs/heads/main' }}
needs: check
runs-on: ubuntu-latest
steps:
Expand Down