Skip to content

show ansible lint diff in the CI #167

show ansible lint diff in the CI

show ansible lint diff in the CI #167

Workflow file for this run

---
name: Ansible Lint
on:
push:
pull_request:
jobs:
build:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check ansible-lint diff
uses: ansible/[email protected]
with: --fix

Check failure on line 15 in .github/workflows/lint.yaml

View workflow run for this annotation

GitHub Actions / Ansible Lint

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yaml (Line: 15, Col: 15): Unexpected value '--fix'
- name: Check ansible lint diff and undo
run: |
# Check diff in the CI
git diff
# Undo diff to run ansible lint in the next step
git checkout -- .
- name: Run ansible-lint
uses: ansible/[email protected]