Skip to content

Use terraform to maintain the organizational structure #11

Use terraform to maintain the organizational structure

Use terraform to maintain the organizational structure #11

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
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: terraform plan
uses: dflook/terraform-plan@v1
env:
TERRAFORM_ACTIONS_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
add_github_comment: true
path: "terraform"
variables: |
github_token = "${{ secrets.TERRAFORM_MANAGEMENT_GITHUB_TOKEN }}"
var_file: |
terraform/production/org.tfvars
terraform/production/repositories.tfvars
terraform/production/teams.tfvars