mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-03-13 17:04:39 -04:00
ci: first draft GH Action for update-i18n
This commit is contained in:
parent
41072301e5
commit
95ab579093
1 changed files with 39 additions and 0 deletions
39
.github/workflows/update-i18n.yml
vendored
Normal file
39
.github/workflows/update-i18n.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
name: Update i18n
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
|
||||
schedule:
|
||||
- cron: 0 0 * * * # daily at midnight UTC = 7-8pm US Eastern
|
||||
|
||||
concurrency:
|
||||
group: '${{ github.workflow }}'
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
ci-cd:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: 'npm'
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Info
|
||||
run: |
|
||||
cat <<EOF
|
||||
Node version: $(node --version)
|
||||
NPM version: $(npm --version)
|
||||
GitHub ref: ${{ github.ref }}
|
||||
GitHub head ref: ${{ github.head_ref }}
|
||||
EOF
|
||||
- name: Setup
|
||||
run: npm ci
|
||||
- name: Extract translations
|
||||
run: npm run i18n:src
|
||||
- name: Push translations
|
||||
env:
|
||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
||||
run: npm run i18n:push
|
Loading…
Reference in a new issue