name: Extract and upload i18n strings on: schedule: # 4am UTC - cron: '0 4 * * *' workflow_dispatch: permissions: contents: read jobs: extract-and-upload-i18n-strings: runs-on: depot-ubuntu-latest environment: i18n if: github.repository == 'actualbudget/actual' steps: - name: Check out main repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: path: actual persist-credentials: false - name: Set up environment uses: ./actual/.github/actions/setup with: working-directory: actual download-translations: false # As we'll manually clone instead - name: Configure Git config run: | git config --global user.name "github-actions[bot]" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - name: Configure i18n client run: | pip install wlc - name: Configure Weblate API credentials env: WEBLATE_API_KEY: ${{ secrets.WEBLATE_API_KEY_CI_STRINGS }} run: | # Write the API key to wlc's config file instead of passing it on # the command line, so the secret doesn't appear in process listings. mkdir -p "$HOME/.config" umask 077 cat > "$HOME/.config/weblate" <