Skip to content

Commit

Permalink
debug ansible-lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
richm committed Dec 15, 2023
1 parent 98d6cd5 commit 5751127
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
# ansible-lint action requires a .git directory???
# https://github.com/ansible/ansible-lint/blob/main/action.yml#L45
mkdir -p "$coll_dir/.git"
# # need .ansible-lint at the collection root directory
# for file in "$coll_dir"/roles/*/.ansible-lint; do
# if [ -f "$file" ] && [ ! -f "$coll_dir/.ansible-lint" ]; then
# cp "$file" "$coll_dir"
# break
# fi
# done
# need .ansible-lint at the collection root directory
for file in "$coll_dir"/roles/*/.ansible-lint; do
if [ -f "$file" ] && [ ! -f "$coll_dir/.ansible-lint" ]; then
cp "$file" "$coll_dir"
break
fi
done
- name: Run ansible-lint
uses: ansible/ansible-lint@v6
Expand Down

0 comments on commit 5751127

Please sign in to comment.