Skip to content

Use terraform to maintain the organizational structure #5

Use terraform to maintain the organizational structure

Use terraform to maintain the organizational structure #5

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