Update actions/checkout action to v4 #9
This file contains 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: Generate terraform docs | |
on: | |
push: | |
# don't run when we push a tag | |
tags-ignore: | |
- '*' | |
# don't run when we merge to main | |
# the action should have run already | |
branches-ignore: | |
- 'main' | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: terraform-linters/setup-tflint@v2 | |
name: Setup TFLint | |
with: | |
tflint_version: v0.38.1 | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
- uses: pre-commit/[email protected] | |
# pre-commit fails if it changed files | |
# we want to go on | |
continue-on-error: true | |
- uses: pre-commit/[email protected] | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions |