Update ansible-lint.yml #1981
Workflow file for this run
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: Ansible Lint # feel free to pick your own name | |
on: | |
pull_request: | |
branches: | |
- main | |
- release-1.4 | |
- release-1.4.0.1 | |
- release-1.4.1 | |
- release-1.4.2 | |
- devel-1.4.2 | |
- devel-1.4.2.1 | |
- devel-1.4.2.2 | |
- devel-1.5 | |
- release-1.5.1 | |
- release-1.6 | |
- release-1.7 | |
- staging | |
- release-1.7.1 | |
- pub/new_architecture | |
jobs: | |
build: | |
name: Ansible Lint # Naming the build is important to use it as a status check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Ansible collections | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install ansible | |
# - name: Install Ansible collections | |
# run: ansible-galaxy collection install -r .config/requirements.yml | |
- name: Run ansible-lint | |
uses: ansible/[email protected] | |
with: | |
args: --config=.config/ansible-lint.yml |