.github/workflows/maintenance.yaml #2821
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
on: | |
push: | |
branches: [ master ] | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: # Enables on-demand/manual triggering | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- run: | | |
cd tools/apispec-rule-gen/schema | |
terraform init -upgrade | |
terraform providers schema -json > schema.json | |
cd ../.. | |
git submodule update --remote | |
go run ./apispec-rule-gen | |
- uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: | | |
autogenerated maintenance | |
title: autogenerated maintenance | |
delete-branch: true | |
body: | | |
If tests are stuck on https://github.com/peter-evans/create-pull-request/issues/48: | |
["Manually close pull requests and immediately reopen them. This will enable `on: pull_request` workflows to run and be added as checks."](https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#triggering-further-workflow-runs) |