Skip to content

Commit e41b2ae

Browse files
Update transifex-pull.yml
1 parent 4e9d056 commit e41b2ae

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

.github/workflows/transifex-pull.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,52 +13,52 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
strategy:
16-
fail-fast: false
1716
matrix:
1817
version: ['3.14']
1918

2019
steps:
21-
# Cancel previous runs
20+
# Cancel previous runs
2221
- uses: styfle/cancel-workflow-action@0.12.1
2322
with:
2423
access_token: ${{ secrets.GITHUB_TOKEN }}
2524

26-
# ✅ Setup Python (stable)
25+
# Python
2726
- uses: actions/setup-python@v5
2827
with:
2928
python-version: '3.12'
3029

31-
# Install dependencies (clean way)
30+
# Install dependencies
3231
- name: Install Dependencies
3332
run: |
3433
sudo apt-get update
3534
sudo apt-get install -y gettext
3635
pip install requests cogapp polib transifex-python sphinx-intl blurb six
3736
38-
# ✅ Install Transifex CLI properly
37+
# 🔥 FIXED Transifex CLI install (IMPORTANT)
3938
- name: Install Transifex CLI
4039
run: |
4140
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
4241
echo "$HOME/.local/bin" >> $GITHUB_PATH
43-
- name: Verify tx installation
44-
run: |
45-
which tx
46-
tx --version
4742
48-
49-
# ✅ Checkout YOUR repo
43+
# Debug (optional but smart)
44+
- name: Verify tx
45+
run: |
46+
which tx
47+
tx --version
48+
49+
# Checkout your repo
5050
- uses: actions/checkout@v4
5151
with:
5252
ref: ${{ matrix.version }}
5353
fetch-depth: 0
5454

55-
# Get official helper script
56-
- name: Download transifex util
55+
# Get helper script
56+
- name: Download util script
5757
run: |
5858
curl -O https://raw.githubusercontent.com/python-docs-translations/transifex-automations/master/sample-workflows/transifex-util.py
5959
chmod +x transifex-util.py
6060
61-
# Create tx config
61+
# Create config
6262
- name: Configure Transifex
6363
run: |
6464
./transifex-util.py recreate_tx_config \
@@ -68,8 +68,8 @@ jobs:
6868
env:
6969
TX_TOKEN: ${{ secrets.TX_TOKEN }}
7070

71-
# Fetch translations
72-
- name: Fetch Translations
71+
# Fetch translations
72+
- name: Fetch translations
7373
run: |
7474
./transifex-util.py fetch \
7575
--language ta \
@@ -78,22 +78,22 @@ jobs:
7878
env:
7979
TX_TOKEN: ${{ secrets.TX_TOKEN }}
8080

81-
# ✅ Remove obsolete files
82-
- name: Cleanup obsolete files
81+
# Cleanup
82+
- name: Delete obsolete files
8383
run: |
8484
./transifex-util.py delete_obsolete_files \
8585
--language ta \
8686
--project-slug python-newest \
8787
--version ${{ matrix.version }}
8888
89-
# ✅ Setup git
90-
- name: Set up Git
89+
# Git setup
90+
- name: Setup Git
9191
run: |
9292
git config --local user.email "github-actions@github.com"
9393
git config --local user.name "Transifex Bot"
9494
95-
# Detect meaningful changes
96-
- name: Check for meaningful changes
95+
# Detect meaningful changes
96+
- name: Check changes
9797
run: |
9898
if ! git diff -I'^"POT-Creation-Date: ' \
9999
-I'^"Language-Team: ' \
@@ -103,14 +103,14 @@ jobs:
103103
echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV
104104
fi
105105
106-
# Commit changes
107-
- name: Commit changes
106+
# Commit
107+
- name: Commit
108108
if: env.SIGNIFICANT_CHANGES
109109
run: |
110110
git add . ':!transifex-util.py'
111111
git commit -m "Update Tamil translations from Transifex"
112112
113-
# Push changes
113+
# Push
114114
- uses: ad-m/github-push-action@v0.8.0
115115
if: env.SIGNIFICANT_CHANGES
116116
with:

0 commit comments

Comments
 (0)