File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed
scripts/knowledgebase-checker Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,26 @@ jobs:
31
31
continue-on-error : true
32
32
id : spellcheck
33
33
34
- # Step 4: Run knowledgebase article checker
34
+ # Step 4: Setup Python and dependencies for KB checker
35
+ - name : Set up Python
36
+ uses : actions/setup-python@v3
37
+ with :
38
+ python-version : ' 3.x'
39
+
40
+ # Step 5: Install Python dependencies
41
+ - name : Install dependencies
42
+ run : |
43
+ python -m pip install --upgrade pip
44
+ pip install -r 'scripts/knowledgebase-checker/requirements.txt'
45
+
46
+ # Step 5: Run knowledgebase article checker
35
47
- name : Check KB
36
48
run : |
37
- ./scripts/knowledgebase_article_checker.py --kb-dir="../knowledgebase"
49
+ ./scripts/knowledgebase-checker/ knowledgebase_article_checker.py --kb-dir="../ ../knowledgebase"
38
50
continue-on-error : true
39
51
id : kbcheck
40
52
41
- # Step 5 : Fail the build if any script returns exit code 1
53
+ # Step 6 : Fail the build if any script returns exit code 1
42
54
- name : Check exit code
43
55
run : |
44
56
if [[ "${{ steps.spellcheck.outcome }}" == "failure" ]] || [[ "${{ steps.kbcheck.outcome }}" == "failure" ]]; then
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ argparse
2
+ os
3
+ yaml
4
+ re
5
+ colored
You can’t perform that action at this time.
0 commit comments