Skip to content

Commit fc5c085

Browse files
committed
ci: ansible-lint - remove .collection directory from converted collection [citest_skip]
The new ansible-lint@v26 does not like it when there is a .collection directory with a galaxy.yml in the converted collection, so remove it, since it is not needed for ansible-lint. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
1 parent 57d259d commit fc5c085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
TOXENV=collection lsr_ci_runtox
4545
coll_dir=".tox/ansible_collections/$LSR_ROLE2COLL_NAMESPACE/$LSR_ROLE2COLL_NAME"
4646
# cleanup after collection conversion
47-
rm -rf "$coll_dir/.ansible" .tox/ansible-plugin-scan
47+
rm -rf "$coll_dir/.ansible" .tox/ansible-plugin-scan "$coll_dir/.collection"
4848
# ansible-lint action requires a .git directory???
4949
# https://github.com/ansible/ansible-lint/blob/main/action.yml#L45
5050
mkdir -p "$coll_dir/.git"

0 commit comments

Comments
 (0)