From c3935abaeb4faf611d4d6878b11ab235fce817e7 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Tue, 1 Oct 2024 00:37:00 +0530 Subject: [PATCH] show ansible lint diff in the CI --- .github/workflows/lint.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 8ad0e24e..9e50bd11 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