Skip to content

- OCResourceRequest: add property .retryIfNotFound to explicitly tell… #104

- OCResourceRequest: add property .retryIfNotFound to explicitly tell…

- OCResourceRequest: add property .retryIfNotFound to explicitly tell… #104

name: "Push source language to Transifex"
on:
push:
branches:
- master
jobs:
push-translations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: l10n-format
shell: bash
run: |
beautifyJSON() {
jq --sort-keys 'walk(if type == "object" then del(."th_TH", ."pt_PT", ."pt_BR", ."nn_NO", ."nb_NO", ."en_GB") else . end)' $1 >$1.tmp
mv $1.tmp $1
}
beautifyJSON "ownCloudSDK/Resources/Localizable.xcstrings"
beautifyJSON "ownCloudUI/Resources/Localizable.xcstrings"
- name: l10n-push-source
uses: transifex/cli-action@584fd205cbe598773b5a81ce711fa44842678189 # v2
with:
token: ${{ secrets.TX_TOKEN }}
args: push -s --skip