Skip to content

Commit b49e0fa

Browse files
committed
fixing ci
1 parent 0f4df42 commit b49e0fa

File tree

1 file changed

+18
-30
lines changed

1 file changed

+18
-30
lines changed

.github/workflows/check-build.yml

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -39,37 +39,25 @@ jobs:
3939
run: yarn add -D markdownlint-cli2
4040

4141
# 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
6645

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)"
7361
7462
check_overall_status:
7563
needs: stylecheck

0 commit comments

Comments
 (0)