Skip to content

.github/workflows/maintenance.yaml #2594

.github/workflows/maintenance.yaml

.github/workflows/maintenance.yaml #2594

Workflow file for this run

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)