Skip to content

Commit

Permalink
ci: add workaround for another ansible-lint action regression
Browse files Browse the repository at this point in the history
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] ansible/ansible-lint#4213

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
  • Loading branch information
ptoscano committed Jun 26, 2024
1 parent 9a38376 commit ad075a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ad075a7

Please sign in to comment.