@@ -22,33 +22,36 @@ jobs:
2222 - uses : actions/setup-python@master
2323 with :
2424 python-version : 3
25- - run : sudo apt-get install -y gettext
26- - run : pip install requests cogapp polib transifex-python sphinx-intl blurb six
27- - run : curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
25+ - name : Install dependencies
26+ run : |
27+ sudo apt-get install -y gettext
28+ pip install requests cogapp polib transifex-python sphinx-intl blurb six
29+ curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
2830 working-directory : /usr/local/bin
2931 - uses : actions/checkout@master
3032 with :
3133 ref : ${{ matrix.version }}
3234 fetch-depth : 0
33- - run : ./manage_translation.py recreate_tx_config
35+ - name : Recreate Transifex config
36+ run : ./manage_translation.py recreate_tx_config
3437 env :
3538 TX_TOKEN : ${{ secrets.TX_TOKEN }}
36- - run : ./manage_translation.py fetch
39+ - name : Fetch translations
40+ run : ./manage_translation.py fetch
3741 env :
3842 TX_TOKEN : ${{ secrets.TX_TOKEN }}
39- # Process README.md
40- - run : python -Werror -m cogapp -rP README.md
41- if : ${{ hashFiles('README.md') != '' }}
43+ - name : Update README.md
44+ run : python -Werror -m cogapp -rP README.md
4245 env :
4346 TX_TOKEN : ${{ secrets.TX_TOKEN }}
44- # Process README.en.md
45- - run : python -Werror -m cogapp -rP README.en.md
47+ - name : Update README.en.md
48+ run : python -Werror -m cogapp -rP README.en.md
4649 if : ${{ hashFiles('README.en.md') != '' }}
4750 env :
4851 TX_TOKEN : ${{ secrets.TX_TOKEN }}
4952 - run : git config --local user.email github-actions@github.com
5053 - run : git config --local user.name "GitHub Action's update-translation job"
51- # Check for changes in README.md
54+ - name : Check changes significance
5255 - run : |
5356 ! git diff -I'^"POT-Creation-Date: ' \
5457 -I'^"Language-Team: ' \
5861 - run : git add .
5962 - run : git commit -m 'Update translation from Transifex'
6063 if : env.SIGNIFICANT_CHANGES
61- - uses : ad-m/github-push-action@master
64+ - name : Push commit
65+ uses : ad-m/github-push-action@master
6266 if : env.SIGNIFICANT_CHANGES
6367 with :
6468 branch : ${{ matrix.version }}
0 commit comments