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 Jan 6, 2024
1 parent 6b9de05 commit 6ba7409
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 6ba7409

Please sign in to comment.