Skip to content

Commit 19fcf85

Browse files
authored
Allow TX_TOKEN to be empty in sync.yml (#233)
This should allow dependabot to run, without pulling translations and without updating translation statisticas
1 parent 9ded212 commit 19fcf85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
secrets:
1515
TX_TOKEN:
1616
description: "Token required for interacting with Transifex API"
17-
required: true
17+
required: false
1818

1919
env:
2020
PYDOC_LANGUAGE: pt_BR
@@ -91,7 +91,7 @@ jobs:
9191
powrap *.po **/*.po
9292
9393
- name: Update statistics
94-
if: always()
94+
if: always() && inputs.secrets.TX_TOKEN != 0
9595
run: |
9696
python ./scripts/tx_stats.py > cpython/Doc/locale/${{ env.PYDOC_LANGUAGE }}/LC_MESSAGES/stats.json
9797
git -C cpython/Doc/locale/${{ env.PYDOC_LANGUAGE }}/LC_MESSAGES/ diff stats.json

0 commit comments

Comments
 (0)