maintenance #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: maintenance | |
on: | |
push: | |
branches: [ master ] | |
schedule: | |
- cron: '0 0 * * 1' | |
workflow_dispatch: # Enables on-demand/manual triggering | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- run: git submodule update --init --depth=0 | |
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
with: | |
go-version-file: 'go.mod' | |
- name: make tflint in tools/magic-modules | |
run: | | |
git submodule update --remote | |
go install golang.org/x/tools/cmd/goimports@latest | |
cd tools/magic-modules | |
make tflint | |
env: | |
OUTPUT_PATH: ${{ github.workspace }}/rules/magicmodules | |
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |
with: | |
commit-message: | | |
Update Magic Modules | |
title: Update Magic Modules | |
delete-branch: true | |
body: | | |
This is an automated pull request triggered by GitHub Actions. To trigger check runs, close and re-open it. |