Skip to content

Commit 25b4f42

Browse files
committed
Automating Magic Modules Updates by GitHub Actions
1 parent 945bab2 commit 25b4f42

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/maintenance.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
push:
3+
branches: [ master ]
4+
schedule:
5+
- cron: '0 0 * * 1'
6+
workflow_dispatch: # Enables on-demand/manual triggering
7+
jobs:
8+
job:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- run: git submodule update --init --depth=0
13+
- uses: actions/setup-go@v5
14+
with:
15+
go-version-file: 'go.mod'
16+
- name: make tflint in tools/magic-modules
17+
run: |
18+
cd tools/magic-modules
19+
make tflint
20+
env:
21+
OUTPUT_PATH: ${{ github.workspace }}/rules/magicmodules
22+
- uses: peter-evans/create-pull-request@v7
23+
with:
24+
commit-message: |
25+
Update Magic Modules
26+
title: Update Magic Modules
27+
delete-branch: true
28+
body: |
29+
This is an automated pull request triggered by GitHub Actions. To trigger check runs, close and re-open it.

0 commit comments

Comments
 (0)