Skip to content

Sync strings with Transifex #52

Sync strings with Transifex

Sync strings with Transifex #52

Workflow file for this run

name: Sync strings with Transifex
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
transifex:
name: Transifex
runs-on: ubuntu-latest
if: github.repository_owner == 'ScratchAddons'
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Generate token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
- name: Push and pull strings
uses: ScratchAddons/l10n-script@main
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}