Skip to content

Use terraform to maintain the organizational structure #2

Use terraform to maintain the organizational structure

Use terraform to maintain the organizational structure #2

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
add_github_comment: true
var_file: tfvars/production.tfvars
variables: |
github_token=${{ secrets.GITHUB_TOKEN }}