Skip to content

Commit

Permalink
ci: re-add workaround for 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 .git directory is hardcoded (ignoring "working_directory").
Hence, for now bring back the .git symlink workaround.

[1] ansible/ansible-lint#4103

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

0 comments on commit 1e3166d

Please sign in to comment.