File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 55
55
- name : Build all translations
56
56
run : |
57
57
for po_lang in ${{ env.LANGUAGES }}; do
58
- POT_CREATION_DATE=$(grep --max-count 1 '^"POT-Creation-Date:' po/$po_lang.po | sed -E 's/".*: (.*)\\n"/\1/')
59
- if [[ $POT_CREATION_DATE == "" ]]; then
60
- POT_CREATION_DATE=now
61
- fi
62
-
63
- echo "::group::Building $po_lang translation as of $POT_CREATION_DATE"
64
- rm -r src/
65
- git restore --source "$(git rev-list -n 1 --before "$POT_CREATION_DATE" @)" src/
66
-
58
+ echo "::group::Building $po_lang translation"
67
59
# Set language and adjust site URL. Clear the redirects
68
60
# since they are in sync with the source files, not the
69
61
# translation.
74
66
echo "::endgroup::"
75
67
done
76
68
69
+ - name : Check all translations for broken links
70
+ run : |
71
+ for po_lang in ${{ env.LANGUAGES }}; do
72
+ MDBOOK_BOOK__LANGUAGE=$po_lang \
73
+ MDBOOK_OUTPUT__HTML__SITE_URL=/rust-by-example/$po_lang/ \
74
+ MDBOOK_OUTPUT__HTML__REDIRECT='{}' \
75
+ sh linkcheck.sh --all rust-by-example
76
+ done
77
+
77
78
- name : Upload Artifact
78
79
uses : actions/upload-artifact@v3
79
80
with :
You can’t perform that action at this time.
0 commit comments