Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Start pulling from TX#5

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
StanFromIreland merged 2 commits intomainfromstart-workflow
Sep 13, 2025
Merged
Changes fromall 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
20 changes: 18 additions & 2 deletions.github/workflows/transifex-pull.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
name: Pull Translations from Transifex

on:
schedule:
- cron: '0 0 * * *'
Expand All@@ -14,13 +13,16 @@ jobs:
fail-fast: false
matrix:
version: [ '3.14' ]

steps:
- uses: styfle/cancel-workflow-action@main
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-python@master
with:
python-version: 3

- name: Install Dependencies
run: |
sudo apt-get install -y gettext
Expand All@@ -29,28 +31,42 @@ jobs:
curl -O https://raw.githubusercontent.com/python-docs-translations/transifex-automations/master/sample-workflows/transifex-util.py
chmod +x transifex-util.py
working-directory: /usr/local/bin

- uses: actions/checkout@master
with:
ref: ${{ matrix.version }}
fetch-depth: 0

- run: transifex-util.py recreate_tx_config --language hu --project-slug python-newest --version ${{ matrix.version }}
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}

- run: transifex-util.py fetch --language hu --project-slug python-newest --version ${{ matrix.version }}
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}

- run: transifex-util.py delete_obsolete_files --language hu --project-slug python-newest --version ${{ matrix.version }}

- name: Set up Git
run: |
git config --local user.email github-actions@github.com
git config --local user.name "GitHub Action's update-translation job"

- name: Filter files
run: |
! git diff -I'^"POT-Creation-Date: ' \
-I'^"Language-Team: ' \
-I'^# ' -I'^"Last-Translator: ' \
--exit-code \
&& echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || exit 0

- run: git add .

- run: git commit -m 'Update translation from Transifex'
if: env.SIGNIFICANT_CHANGES
if: env.SIGNIFICANT_CHANGES

- uses: ad-m/github-push-action@master
if: env.SIGNIFICANT_CHANGES
with:
branch: ${{ matrix.version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
Loading

[8]ページ先頭

©2009-2025 Movatter.jp