@@ -39,37 +39,25 @@ jobs:
39
39
run : yarn add -D markdownlint-cli2
40
40
41
41
# Run the checks here
42
- - name : Run checks
43
- id : check_step
44
- run : |
45
- if [[ "${{ matrix.check_type }}" == "spellcheck" ]]; then
46
- yarn check-spelling
47
- exit_code=$?
48
- elif [[ "${{ matrix.check_type }}" == "kbcheck" ]]; then
49
- yarn check-kb
50
- exit_code=$?
51
- elif [[ "${{ matrix.check_type }}" == "md-lint" ]]; then
52
- yarn check-markdown
53
- exit_code=$?
54
- elif [[ "${{ matrix.check_type }}" == "glossary-check" ]]; then
55
- echo "Extracting glossary from markdown..."
56
- python3 scripts/glossary/extract-glossary-terms.py
57
- echo "Checking glossary coverage..."
58
- python3 scripts/glossary/wrap-glossary-terms.py --check || echo "::warning::Glossary check found unwrapped terms (non-blocking)"
59
- exit_code=0 # Always succeed for glossary check
60
- fi
61
-
62
- if [[ $exit_code -ne 0 ]]; then
63
- echo "::error::${{ matrix.check_type }} check failed. See logs for details."
64
- exit 1
65
- fi
42
+ - name : Run spellcheck
43
+ if : matrix.check_type == 'spellcheck'
44
+ run : yarn check-spelling
66
45
67
- - name : Set check status
68
- if : steps.check_step.outcome != 'success'
69
- uses : actions/github-script@v6
70
- with :
71
- script : |
72
- core.setFailed('${{ matrix.check_type }} check failed.');
46
+ - name : Run KB check
47
+ if : matrix.check_type == 'kbcheck'
48
+ run : yarn check-kb
49
+
50
+ - name : Run markdown lint
51
+ if : matrix.check_type == 'md-lint'
52
+ run : yarn check-markdown
53
+
54
+ - name : Run glossary check
55
+ if : matrix.check_type == 'glossary-check'
56
+ run : |
57
+ echo "Extracting glossary from markdown..."
58
+ python3 scripts/glossary/extract-glossary-terms.py
59
+ echo "Checking glossary coverage..."
60
+ python3 scripts/glossary/wrap-glossary-terms.py --check || echo "::warning::Glossary check found unwrapped terms (non-blocking)"
73
61
74
62
check_overall_status :
75
63
needs : stylecheck
0 commit comments