-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 973 Bytes
/
translate.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Get translations
on:
schedule:
# every day at 12:15 CET, this is 10:15 in UTC
- cron: '15 10 * * *'
workflow_dispatch: {}
push:
paths:
- .github/workflows/translate.yml
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- run: git config --global user.name 'alsino'
- run: git config --global user.email 'iamahorse@gmail.com'
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '16.14.0'
env:
super_secret: ${{ secrets.API_KEY }}
- run: npm install
- run: npm run translate
- run: git add .
- run: git commit --allow-empty -m "Updated language files"
- run: git push origin main