Skip to content

Commit

Permalink
Merge pull request #407 from lkiesow/wf-naming
Browse files Browse the repository at this point in the history
Better naming for Crowdin workflows
  • Loading branch information
ziegenberg authored May 28, 2024
2 parents 8326e52 + 3aef8bd commit e89356c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update translations
name: Crowdin » Download translations

on:
schedule:
Expand All @@ -16,26 +16,24 @@ jobs:
run: |
git config --global user.email '[email protected]'
git config --global user.name 'Crowdin Bot'
- name: prepare crowdin client
run: |
wget --quiet https://artifacts.crowdin.com/repo/deb/crowdin3.deb -O crowdin.deb
sudo dpkg -i crowdin.deb
- name: download translations
env:
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
run: |
crowdin download --config .crowdin.yaml -b admin-ui-picard
crowdin download --config .crowdin.yaml -b main
- name: add new translations
run: |
git add /src/i18n/org/opencastproject/adminui/languages/
- name: update language list
working-directory: /src/i18n/org/opencastproject/adminui/languages/
run: |
echo -n '[ "' > locales.json
echo -n ??-??.json | sed 's/ */", "/g' >> locales.json
echo '" ]' >> locales.json
git add src/i18n/org/opencastproject/adminui/languages/
- name: upload translations
run: |
if git commit -m "Automatically update translation keys"; then
git push
fi
fi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Crowdin keys
name: Crowdin » Upload keys

on:
push:
Expand Down

0 comments on commit e89356c

Please sign in to comment.