Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,17 @@ jobs:
&& sudo cp ./importer_result.json .cache/collection-tarballs/importer_result.json

- name: Check warnings and errors
run: if grep -E 'WARNING|ERROR' .cache/collection-tarballs/log.txt; then exit 1; else exit 0; fi
shell: python
run: |
# Check warnings and errors
err = 0
with open('.cache/collection-tarballs/log.txt', 'r', encoding='utf-8') as f:
for line in f:
if line.startswith('ERROR:') or line.startswith('WARNING:'):
print(line)
if 'Ignore files skip ansible-test sanity tests, found ignore' not in line:
err = 1
exit(err)

- name: Store galaxy_importer check log file
uses: actions/upload-artifact@v4
Expand Down
Loading