Skip to content

Automatically lint new PRs #15

Automatically lint new PRs

Automatically lint new PRs #15

Workflow file for this run

name: ansible-lint
on:
pull_request:
branches:
- main
- release/v*
workflow_dispatch:
jobs:
lint:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: pip
- name: Install python dependencies
run: pip install -r requirements.txt
- name: Create collection directory
run: mkdir -p "$HOME/.ansible/collections/ansible_collections/tofugarden/secureboot"
- name: Copy repo contents to collection dir
run: cp -r * "$HOME/.ansible/collections/ansible_collections/tofugarden/secureboot/"
- name: Run ansible-lint
run: ansible-lint
working-directory: "/home/runner/.ansible/collections/ansible_collections/tofugarden/secureboot"