From 1e3166d59d1d22f46ab3b68026f4e4dc91a88f78 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 5 Jun 2024 19:28:27 +0200 Subject: [PATCH] ci: re-add workaround for ansible-lint action regression Due to recent changes in the ansible-lint action [1], the location of the .git directory is hardcoded (ignoring "working_directory"). Hence, for now bring back the .git symlink workaround. [1] https://github.com/ansible/ansible-lint/pull/4103 Signed-off-by: Pino Toscano --- .github/workflows/ansible-lint.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 968e7eb..6342e8b 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -21,6 +21,15 @@ jobs: with: path: ansible_collections/redhat/insights + - name: Workaround ansible-lint action bug + run: | + # create a symlink to the .git directory of the checkout + # in the local directory: the current ansible-lint action (v24.5.0) + # does not use its "working_directory" for the .git directory + # of the checkout; regression introduced by + # https://github.com/ansible/ansible-lint/pull/4103 + ln -s ansible_collections/redhat/insights/.git . + - name: Set Ansible environment variables (#1) run: | echo "ANSIBLE_COLLECTIONS_PATH=$PWD" >> "$GITHUB_ENV"