mirror of
https://github.com/ru-de/faq.git
synced 2024-10-23 03:51:01 +00:00
Compare commits
3 Commits
b0a3b24ef1
...
23fe621838
Author | SHA1 | Date | |
---|---|---|---|
|
23fe621838 | ||
|
f779c29436 | ||
|
34847eea73 |
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
git config --global user.email "actions@github.com"
|
git config --global user.email "actions@github.com"
|
||||||
git config --global user.name "Github Actions"
|
git config --global user.name "Github Actions"
|
||||||
LC_ALL=ru_RU.UTF8 sort files/ci/dictionary.dic -o files/ci/dictionary.dic -f
|
LC_ALL=ru_RU.UTF8 sort files/ci/dictionary.dic -o files/ci/dictionary.dic -f
|
||||||
if ! git diff HEAD --quiet; then git commit -q -am "dictionary rearrangement" && git push; fi
|
if ! git diff HEAD --quiet; then git commit -q -am "re-order dictionary" && git push; fi
|
||||||
update_github_pages:
|
update_github_pages:
|
||||||
if: github.repository == 'ru-de/faq'
|
if: github.repository == 'ru-de/faq'
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
@ -6,10 +6,7 @@ PWD_DIR=`pwd`
|
|||||||
DIR=`dirname $0`
|
DIR=`dirname $0`
|
||||||
|
|
||||||
apt-get -yqq update && apt-get install -y curl wget unzip binutils hunspell hunspell-ru hunspell-en-us hunspell-de-de jq
|
apt-get -yqq update && apt-get install -y curl wget unzip binutils hunspell hunspell-ru hunspell-en-us hunspell-de-de jq
|
||||||
curl -s https://extensions.libreoffice.org/en/extensions/show/russian-spellcheck-dictionary > .dict_page
|
wget https://extensions.libreoffice.org/assets/downloads/48/dict_ru_ru-aot-0.4.5.oxt -O /tmp/dictionary.otx
|
||||||
echo -n "https://extensions.libreoffice.org" > .current_release
|
|
||||||
strings .dict_page | grep -ozP '<li class="releaseRow">(\n|.)*?</li>' | grep -zoP -m 1 'href=".*?">Download' | head -1 | sed 's/href="//' | sed 's/">Download//' >> .current_release
|
|
||||||
cat .current_release | wget -q -i - -O /tmp/dictionary.otx
|
|
||||||
unzip /tmp/dictionary.otx -d /tmp
|
unzip /tmp/dictionary.otx -d /tmp
|
||||||
cp /tmp/*.dic /usr/share/hunspell
|
cp /tmp/*.dic /usr/share/hunspell
|
||||||
cp /tmp/*.aff /usr/share/hunspell
|
cp /tmp/*.aff /usr/share/hunspell
|
||||||
@ -35,12 +32,12 @@ done
|
|||||||
echo "SET UTF-8" >> /tmp/dictionary.aff
|
echo "SET UTF-8" >> /tmp/dictionary.aff
|
||||||
mv /tmp/dictionary.* /usr/share/hunspell
|
mv /tmp/dictionary.* /usr/share/hunspell
|
||||||
|
|
||||||
go get -u github.com/ewgRa/ci-utils/cmd/diff_liner
|
go install github.com/ewgRa/ci-utils/cmd/diff_liner@latest
|
||||||
go get -u github.com/ewgRa/ci-utils/cmd/hunspell_parser
|
go install github.com/ewgRa/ci-utils/cmd/hunspell_parser@latest
|
||||||
go get -u github.com/ewgRa/ci-utils/cmd/github_comments_diff
|
go install github.com/ewgRa/ci-utils/cmd/github_comments_diff@latest
|
||||||
go get -u github.com/ewgRa/ci-utils/cmd/github_comments_send
|
go install github.com/ewgRa/ci-utils/cmd/github_comments_send@latest
|
||||||
|
|
||||||
cd $DIR/go
|
cd $DIR/go
|
||||||
go build -o /tmp/check_spell check_spell/main.go
|
go build -o /tmp/check_spell check_spell/main.go
|
||||||
go build -o /tmp/check_links check_links/main.go
|
go build -o /tmp/check_links check_links/main.go
|
||||||
cd $PWD_DIR
|
cd $PWD_DIR
|
||||||
|
Loading…
Reference in New Issue
Block a user