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

Skip to content

Add names to workflow steps #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions .github/workflows/update-lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,36 @@ jobs:
- uses: actions/setup-python@master
with:
python-version: 3
- run: sudo apt-get install -y gettext
- run: pip install requests cogapp polib transifex-python sphinx-intl blurb six
- run: curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
- name: Install dependencies
run: |
sudo apt-get install -y gettext
pip install requests cogapp polib transifex-python sphinx-intl blurb six
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
working-directory: /usr/local/bin
- uses: actions/checkout@master
with:
ref: ${{ matrix.version }}
fetch-depth: 0
- run: ./manage_translation.py recreate_tx_config
- name: Recreate Transifex config
run: ./manage_translation.py recreate_tx_config
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
- run: ./manage_translation.py fetch
- name: Fetch translations
run: ./manage_translation.py fetch
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
# Process README.md
- run: python -Werror -m cogapp -rP README.md
if: ${{ hashFiles('README.md') != '' }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@m-aciek I'm not sure how this happened?

- name: Update README.md
run: python -Werror -m cogapp -rP README.md
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
# Process README.en.md
- run: python -Werror -m cogapp -rP README.en.md
- name: Update README.en.md
run: python -Werror -m cogapp -rP README.en.md
if: ${{ hashFiles('README.en.md') != '' }}
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
- run: git config --local user.email [email protected]
- run: git config --local user.name "GitHub Action's update-translation job"
# Check for changes in README.md
- name: Check changes significance
- run: |
! git diff -I'^"POT-Creation-Date: ' \
-I'^"Language-Team: ' \
Expand All @@ -58,7 +61,8 @@ jobs:
- run: git add .
- run: git commit -m 'Update translation from Transifex'
if: env.SIGNIFICANT_CHANGES
- uses: ad-m/github-push-action@master
- name: Push commit
uses: ad-m/github-push-action@master
if: env.SIGNIFICANT_CHANGES
with:
branch: ${{ matrix.version }}
Expand Down