kopia lustrzana https://github.com/inkstitch/inkstitch
upgrade crowdin (#2374)
rodzic
d836245e1f
commit
a046c256ae
|
@ -18,12 +18,13 @@ jobs:
|
|||
with:
|
||||
python-version: '3.8.x'
|
||||
- env:
|
||||
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
|
||||
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_V2_KEY }}
|
||||
CROWDIN_PROJECT_ID: "299419"
|
||||
run: |
|
||||
git config --global user.email "inkstitch-crowdin@lex.gd"
|
||||
git config --global user.name "Ink/Stitch Crowdin integration"
|
||||
|
||||
wget --quiet https://downloads.crowdin.com/cli/v2/crowdin-cli.zip
|
||||
wget --quiet https://downloads.crowdin.com/cli/v3/crowdin-cli.zip
|
||||
unzip -j crowdin-cli.zip
|
||||
|
||||
sudo apt-get update
|
||||
|
@ -47,10 +48,10 @@ jobs:
|
|||
|
||||
make messages.po
|
||||
echo "uploading messages.po to crowdin"
|
||||
java -jar crowdin-cli.jar -v upload -b main
|
||||
java -jar crowdin-cli.jar -v upload -b main -T "$CROWDIN_API_KEY" -i "$CROWDIN_PROJECT_ID"
|
||||
|
||||
echo "downloading new translations"
|
||||
java -jar crowdin-cli.jar -v pull -b main
|
||||
java -jar crowdin-cli.jar -v pull -b main -T "$CROWDIN_API_KEY" -i "$CROWDIN_PROJECT_ID"
|
||||
|
||||
# Try to only commit if translations changed. Crowdin will update all
|
||||
# files when a new translation string is added but we don't need to
|
||||
|
|
Ładowanie…
Reference in New Issue