fix #436
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 | |
on: | |
push: | |
branches: | |
- main | |
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: Install ansible | |
run: pipx install ansible-base | |
- name: Install ansible | |
run: pipx install ansible-lint | |
- name: Add ~/.local/.bin to path for pipx packages | |
run: echo "$HOME/.local/bin" >> $GITHUB_PATH | |
# - uses: actions/setup-python@v5 | |
# with: | |
# python-version: "3.9" | |
- name: Install Ansible-Galaxy Requirements | |
run: ansible-galaxy collection install -r collections/requirements.yml | |
- name: "Remove the vault_password_file entry from ansible.cfg. Avoid: 'ERROR! The vault password file <> was not found'" | |
run: sed -i '/vault_password_file\s*=/d' ansible.cfg && cat ansible.cfg | |
- name: Temp | |
run: sed -i '/- configure_archivepodcast_secrets/d' build_podc.yml && cat build_podc.yml | |
- name: Run ansible-lint | |
run: ansible-lint |