Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d90dbdf

Browse files
add names to workflow
1 parent c3bf1cb commit d90dbdf

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

.github/workflows/update-lint-and-build.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,45 @@ 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 [email protected]
5053
- run: git config --local user.name "GitHub Action's update-translation job"
51-
# Check for changes in README.md
52-
- run: >
54+
- name: Check for changes in README.md
55+
run: >
5356
! git diff -I'^"POT-Creation-Date: ' -I'^"Language-Team: ' -I'^# ' -I'^"Last-Translator: ' --exit-code && echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || exit 0
54-
- run: git add .
55-
- run: git commit -m 'Update translation from Transifex'
57+
- name: Commit changes
58+
run: |
59+
git add .
60+
git commit -m 'Update translation from Transifex'
5661
if: env.SIGNIFICANT_CHANGES
57-
- uses: ad-m/github-push-action@master
62+
- name: Push commit
63+
uses: ad-m/github-push-action@master
5864
if: env.SIGNIFICANT_CHANGES
5965
with:
6066
branch: ${{ matrix.version }}

0 commit comments

Comments
 (0)