Skip to content
Closed
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
16 changes: 9 additions & 7 deletions .github/workflows/update-lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Translation and Linting Workflow
on:
schedule:
- cron: '0 * * * *'
pull_request:
push:
branches:
- '*'
Expand Down Expand Up @@ -42,7 +43,7 @@ jobs:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
# Process README.en.md
- run: python -Werror -m cogapp -rP README.en.md
if: ${{ hashFiles('README.en.md') != '' }}
if: ${{ hashFiles('README.en.md') != '' }} && github.event_name != pull_request
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
- run: git config --local user.email [email protected]
Expand All @@ -53,12 +54,7 @@ jobs:
- run: git add .
- run: git commit -m 'Update translation from Transifex'
if: env.SIGNIFICANT_CHANGES
- uses: ad-m/github-push-action@master
if: env.SIGNIFICANT_CHANGES
with:
branch: ${{ matrix.version }}
github_token: ${{ secrets.GITHUB_TOKEN }}


lint:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -101,6 +97,12 @@ jobs:
path: Doc/locales/pl/LC_MESSAGES
- run: git pull
working-directory: ./Doc/locales/pl/LC_MESSAGES
# Testing PO file update
- run: make gettext
working-directory: ./Doc
- run: pip install sphinx-intl
- run: sphinx-intl update -d locales -p build/gettext -l pl
working-directory: ./Doc
- run: make -e SPHINXOPTS="-D language='pl' -D gettext_compact=0 -W --keep-going" ${{ matrix.format }}
working-directory: ./Doc
- uses: actions/upload-artifact@master
Expand Down