-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #407 from lkiesow/wf-naming
Better naming for Crowdin workflows
- Loading branch information
Showing
2 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Update translations | ||
name: Crowdin » Download translations | ||
|
||
on: | ||
schedule: | ||
|
@@ -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 |
2 changes: 1 addition & 1 deletion
2
.github/workflows/crowdin-deploy-keys.yml → .github/workflows/crowdin-upload-keys.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Deploy Crowdin keys | ||
name: Crowdin » Upload keys | ||
|
||
on: | ||
push: | ||
|