From b0d2ec077695fa8867e8c1de26c773f7e00fddd7 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Wed, 8 Jan 2025 11:43:55 +0100 Subject: [PATCH] fix: use official ansible lint action Signed-off-by: Louis Vallat --- .gitea/workflows/lint.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index 5ea743e..ddf10ca 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -8,11 +8,14 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v4 - - name: Activate venv & install dependencies + - name: Setup virtual environment run: | python3 -m venv venv . venv/bin/activate echo PATH=$PATH >> $GITHUB_ENV - pip install ansible ansible-lint - - name: Lint - run: ansible-lint --show-relpath + - name: Run ansible-lint + uses: ansible/ansible-lint@main + with: + args: "--show-relpath" + setup_python: "true" + requirements_file: "" \ No newline at end of file