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"