We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 361d124 commit c5e84daCopy full SHA for c5e84da
.github/workflows/ansible-test.yml
@@ -96,7 +96,16 @@ jobs:
96
&& sudo cp ./importer_result.json .cache/collection-tarballs/importer_result.json
97
98
- name: Check warnings and errors
99
- run: if grep -E 'WARNING|ERROR' .cache/collection-tarballs/log.txt; then exit 1; else exit 0; fi
+ shell: python
100
+ run: |
101
+ err_count = 0
102
+ with open('.cache/collection-tarballs/log.txt', 'r', encoding='utf-8') as f:
103
+ for line in f:
104
+ if line.startswith('ERROR:') or line.startswith('WARNING:'):
105
+ print(line)
106
+ if 'Ignore files skip ansible-test sanity tests, found ignore' not in line:
107
+ err_count += 1
108
+ exit(err_count)
109
110
- name: Store galaxy_importer check log file
111
uses: actions/upload-artifact@v4
0 commit comments