Auto-update pre-commit hooks (#56) #142
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
--- | |
# This workflow action will run pre-commit, which will execute ansible and yaml linting | |
# See .pre-commit-config.yaml for what hooks are executed | |
name: Yaml and Ansible Lint | |
on: # noqa yaml[truthy] | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
# - name: Upgrade Ansible | |
# run: | | |
# sudo apt install software-properties-common | |
# pip install --upgrade ansible | |
- uses: pre-commit/[email protected] |