Skip to content

push into main

push into main #9

Workflow file for this run

on:
pull_request:
paths:
- 'terraform/**'
push:
branches:
- main
- develop
- feature/*
- hotfix/*
- release/*
jobs:
provision:
runs-on: ubuntu-latest
permissions:
actions: read # Required to identify workflow run.
checks: write # Required to add status summary.
contents: read # Required to checkout repository.
pull-requests: write # Required to add comment and label.
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
- uses: devsectop/tf-via-pr@v12
with:
# Only plan by default, or apply with lock on merge.
command: ${{ github.event_name == 'push' && 'apply' || 'plan' }}
arg-lock: ${{ github.event_name == 'push' }}
#arg-var-file: env/dev.tfvars
arg-workspace: dev-use1
working-directory: terraform
plan-encrypt: ${{ secrets.PASSPHRASE }}