From ad075a7b9e3b4ca86732f99ee7a5782660c5ef5a Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 26 Jun 2024 16:44:11 +0200 Subject: [PATCH] ci: add workaround for another ansible-lint action regression Due to recent changes in the ansible-lint action [1], the location of the output file download via wget is not correct. Hence, for now add a fake structure to work also with the paths calculated by the action. [1] https://github.com/ansible/ansible-lint/pull/4213 Signed-off-by: Pino Toscano --- .github/workflows/ansible-lint.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 968e7eb..d1041ee 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -21,6 +21,17 @@ 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.6.1) + # prepends "working_directory" to the output location for files in + # the .git directoryof the checkout; regression introduced by + # https://github.com/ansible/ansible-lint/pull/4213 + mkdir -p ansible_collections/redhat/insights + ln -s ../../../.git ansible_collections/redhat/insights/ + working-directory: ansible_collections/redhat/insights + - name: Set Ansible environment variables (#1) run: | echo "ANSIBLE_COLLECTIONS_PATH=$PWD" >> "$GITHUB_ENV"