Update generated content #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update generated content | |
on: | |
schedule: | |
- cron: "0 9 * * 1-5" | |
workflow_dispatch: | |
# push: # uncomment to test this workflow | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: hashicorp/setup-terraform@v3 | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Generate Terraform Resource Definitions | |
run: node ./tools/generate-terraform.js resource-definitions | |
- name: Generate Terraform Resource Graph Patterns | |
run: node ./tools/generate-terraform.js resource-graph-patterns | |
- name: Format Terraform Resource Definitions | |
run: terraform fmt -recursive resource-definitions/ | |
- name: Format Terraform Resource Graph Patterns | |
run: terraform fmt -recursive resource-graph-patterns/ | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
commit-message: "chore: update generated example library content" | |
title: Update generated example library content | |
body: | | |
Update generated example-library content | |
branch: update-generated | |
team-reviewers: "Docs" |