diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 8ad0e24..9e50bd1 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -10,5 +10,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Check ansible-lint diff + uses: ansible/ansible-lint@v24.9.2 + with: --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/ansible-lint@main + uses: ansible/ansible-lint@v24.9.2