generated from terraform-linters/tflint-ruleset-template
-
Notifications
You must be signed in to change notification settings - Fork 25
32 lines (32 loc) · 1.15 KB
/
maintenance.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)