Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translation(HTML): web/html/constraint_validation #1766

Merged
merged 22 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
6c82b23
translation(HTML): web/html/constraint_validation
undead404 May 18, 2023
57507c2
Merge branch 'master' into translation/web-html-constraint_validation
undead404 Nov 23, 2023
b1c2895
fix: pandoc pipe_tables
undead404 Nov 23, 2023
8144af3
fix: timeout gh api
undead404 Nov 23, 2023
22aa54c
fix: handle unhandledRejection
undead404 Nov 23, 2023
e547c73
fix: total timeout
undead404 Nov 23, 2023
ba1d89a
fix: debug result in job2
undead404 Nov 23, 2023
ffc9e33
fix: correct ../result.json path
undead404 Nov 23, 2023
bd0948c
fix: timeout for a job
undead404 Nov 23, 2023
738c083
fix: try-catch
undead404 Nov 23, 2023
76e7a59
fix: script loop exit cond
undead404 Nov 23, 2023
67771b0
fix: pandoc through html
undead404 Nov 23, 2023
7c4e038
Merge branch 'master' into translation/web-html-constraint_validation
undead404 Nov 23, 2023
81b83a5
Merge branch 'master' into translation/web-html-constraint_validation
undead404 Nov 26, 2023
9fc1225
Apply suggestions from code review
undead404 Jan 14, 2024
299a139
Merge branch 'master' into translation/web-html-constraint_validation
undead404 Jun 19, 2024
3e01982
update(HTML): web/html/constraint_validation
undead404 Jun 19, 2024
57cca79
Merge branch 'translation/web-html-constraint_validation' of github.c…
undead404 Jun 19, 2024
0255440
Merge branch 'master' into translation/web-html-constraint_validation
undead404 Jul 19, 2024
3d8634a
update(HTML): web/html/constraint_validation
undead404 Jul 19, 2024
97b0e84
Merge branch 'master' into translation/web-html-constraint_validation
undead404 Aug 10, 2024
af49ce9
update(HTML): web/html/constraint_validation
undead404 Aug 10, 2024
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
10 changes: 8 additions & 2 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,18 @@ jobs:
run: |
file=${{ needs.prepare-translation.outputs.translation }}
newFileName=$(echo $file | sed 's/\.md/\.txt/')
pandoc -f markdown -t plain -o $newFileName $file
pandoc -f markdown -t plain+pipe_tables -o $newFileName $file
echo "translation=$newFileName" >> $GITHUB_OUTPUT
echo $newFileName
# - name: Remove tables from plain text file
# run: |
# file=${{ steps.md2txt.outputs.translation }}
# sed -i '/\|/d' $file
# Error if translation file is not found
- if: steps.md2txt.outputs.translation == ''
name: Check translation is found
run: echo "No translation file found" && exit 1
- uses: actions/setup-java@v2
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "8"
Expand All @@ -98,6 +102,7 @@ jobs:
run: |
cd LanguageTool-6.3
java -jar languagetool-commandline.jar -d ${{steps.disabled-rules.outputs.disabled_rules}} -l uk --json ../${{ steps.md2txt.outputs.translation }} > ../result.json
cat ../result.json
matches=$(cat ../result.json | jq '.matches')
# Check if matches equal []
echo "has_matches=$(if [ "$matches" == "[]" ]; then echo "false"; else echo "true"; fi)" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -142,5 +147,6 @@ jobs:
PR_NUMBER: ${{ github.event.pull_request.number }}
name: Send results
run: node scripts/send-comments.js ${{ needs.prepare-translation.outputs.translation }}
timeout-minutes: 5
- name: Exit with error
run: echo "Spelling errors found" && cat result.json && exit 1
Loading
Loading