Pull and push strings via Transifex #368
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
name: Pull and push strings via Transifex | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
transifex: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'ScratchAddons' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Generate token | |
uses: tibdex/github-app-token@v1 | |
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 }} |