Skip to content

Commit

Permalink
Merge pull request #172 from PatMyron/master
Browse files Browse the repository at this point in the history
  • Loading branch information
bendrucker committed May 25, 2022
2 parents 5ee511a + 72e9d1e commit 4202405
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/maintenance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: 1.18
- 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@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)
1 change: 0 additions & 1 deletion tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ $ go run ./apispec-rule-gen
```console
$ cd apispec-rule-gen/schema
$ tfenv install
# Edit provider.tf
$ terraform init -upgrade
$ terraform providers schema -json > schema.json
$ cd ../../
Expand Down
1 change: 0 additions & 1 deletion tools/apispec-rule-gen/schema/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.4.0"
}
}
}

0 comments on commit 4202405

Please sign in to comment.