Run Ansible linter #210
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: Run Ansible linter | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
# Run ansible-lint nightly | |
schedule: | |
- cron: '0 2 * * *' | |
jobs: | |
build: | |
name: Ansible Lint # Naming the build is important to use it as a status check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run ansible-lint | |
uses: ansible/ansible-lint@main # or version tag instead of 'main' |