Skip to content

Use terraform to maintain the organizational structure #1

Use terraform to maintain the organizational structure

Use terraform to maintain the organizational structure #1

Workflow file for this run

name: "Plan org changes and list them in a PR"
on:
pull_request:
branches:
- main
jobs:
plan-changes:
name: "Org changes plan"
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: terraform plan
uses: dflook/terraform-plan@v1
with:
path: terraform
label: production
add_github_comment: true
workspace: prod
var_file: tfvars/production.tfvars
variables: |
github_token=${{ secrets.GITHUB_TOKEN }}