mirror of
https://github.com/ru-de/faq.git
synced 2024-11-09 20:21:01 +00:00
50488f0282
* test github action * add repo filter to protect forks * add repo filter to protect forks * test commit * fetch * depth 100 * sort dictionary * sort dict * dictionary rearrangement * sort dict * dictionary rearrangement * add update gh-pages on github actions * move update on master push from travis to gh actions * right exit code * test * drop test * drop unused * go is not required Co-authored-by: Github Actions <actions@github.com>
22 lines
587 B
YAML
22 lines
587 B
YAML
name: Sort dictionary
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
sort_dictionary:
|
|
if: github.repository == 'ru-de/faq'
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
- name: sort
|
|
run: |
|
|
git config --global user.email "actions@github.com"
|
|
git config --global user.name "Github Actions"
|
|
LC_ALL=ru_RU.UTF8 sort files/dictionary.dic -o files/dictionary.dic -f
|
|
if ! git diff HEAD --quiet; then git commit -q -am "dictionary rearrangement" && git push; fi
|