generated from terraform-linters/tflint-ruleset-template
-
Notifications
You must be signed in to change notification settings - Fork 70
34 lines (34 loc) · 1.2 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
33
34
on:
push:
branches: [ master ]
schedule:
- cron: '*/5 * * * *'
workflow_dispatch: # Enables on-demand/manual triggering
jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- run: |
go get github.com/aws/aws-sdk-go
go mod tidy
cd tools/provider-schema
terraform init -upgrade
terraform providers schema -json > schema.json
cd ../..
git submodule update --remote
go generate ./...
- uses: peter-evans/create-pull-request@v4
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)