Skip to content

Use terraform to maintain the organizational structure #8

Use terraform to maintain the organizational structure

Use terraform to maintain the organizational structure #8

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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
add_github_comment: true
path: "terraform"
variables: |
github_token = "${{ env.GITHUB_TOKEN }}"
var_file: |
terraform/production/org.tfvars
terraform/production/repositories.tfvars
terraform/production/teams.tfvars