2020-11-12 22:42:25 +00:00
|
|
|
name: Continuous delivery
|
2020-11-11 23:03:31 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2020-11-12 22:42:25 +00:00
|
|
|
sort_dictionary:
|
|
|
|
if: github.repository == 'ru-de/faq'
|
2023-08-22 12:08:24 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2020-11-12 22:42:25 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
- name: Sort dictionary
|
|
|
|
run: |
|
|
|
|
git config --global user.email "actions@github.com"
|
|
|
|
git config --global user.name "Github Actions"
|
|
|
|
LC_ALL=ru_RU.UTF8 sort files/ci/dictionary.dic -o files/ci/dictionary.dic -f
|
2023-08-22 12:08:24 +00:00
|
|
|
if ! git diff HEAD --quiet; then git commit -q -am "re-order dictionary" && git push; fi
|
2020-11-11 23:03:31 +00:00
|
|
|
update_github_pages:
|
|
|
|
if: github.repository == 'ru-de/faq'
|
2023-08-22 12:08:24 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2020-11-11 23:03:31 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 100
|
2020-11-12 22:42:25 +00:00
|
|
|
- name: Update github pages
|
2020-11-11 23:03:31 +00:00
|
|
|
run: |
|
|
|
|
git config --global user.email "actions@github.com"
|
|
|
|
git config --global user.name "Github Actions"
|
|
|
|
git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin gh-pages
|
|
|
|
git checkout gh-pages
|
|
|
|
bash update.sh > /dev/null 2>&1
|
|
|
|
git add pages
|
|
|
|
if ! git diff HEAD --quiet; then git commit -q -am "sync github pages" && git push; fi
|