Skip to content

Update translations #820

Update translations

Update translations #820

Workflow file for this run

name: "Update translations"
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * *"
permissions: {}
defaults:
run:
shell: pwsh
jobs:
update-translations:
permissions:
# for git push
contents: write
runs-on: ubuntu-latest
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
ref: "4"
- name: l10n-remove-old
run: bash .github/workflows/run-in-docker.sh rabits/qt:5.12-desktop "cd translations && make l10n-remove-old"
- name: l10n-read
run: bash .github/workflows/run-in-docker.sh rabits/qt:5.12-desktop "cd translations && make l10n-read"
- name: l10n-push
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: bash .github/workflows/run-in-docker.sh owncloudci/transifex:latest "cd translations && make l10n-push"
- name: l10n-pull
run: bash .github/workflows/run-in-docker.sh owncloudci/transifex:latest "cd translations && make l10n-pull"
- name: l10n-clean
run: bash .github/workflows/run-in-docker.sh owncloudci/transifex:latest "cd translations && make l10n-clean"
- name: update-repo-before-commit
run: |
git status
git add translations/client_*.ts
git status
git stash
git pull --ff-only origin
- name: commit and push
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: |
if(git stash list) {
git stash pop
install -d -m 0700 ~/.ssh
Set-Content -Value "${{ secrets.DEPLOYMENT_SSH_KEY }}" -Path ~/.ssh/id_ed25519
chmod 0600 ~/.ssh/id_ed25519
git config user.name "ownClouders"
git config user.email "[email protected]"
git add translations/
git commit -m "[tx] updated client translations from transifex [skip ci]"
git push [email protected]:owncloud/client.git
}