-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (46 loc) · 1.35 KB
/
import.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Import from Google Sheets
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
pull:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [main]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: libxml install
run: sudo apt-get update && sudo apt-get install -y libxml2-utils
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Fetch synsets
run: npx isv synsets pull
env:
ISV_BETA: 'true'
ISV_DEBUG: 'true'
ISV_ENCRYPTION_KEY: ${{ secrets.ISV_ENCRYPTION_KEY }}
ISV_ENCRYPTION_IV: ${{ secrets.ISV_ENCRYPTION_IV }}
JWT_TOKEN: ${{ secrets.JWT_TOKEN }}
- name: Upload log file
uses: actions/upload-artifact@v4
with:
name: database-engine-log-${{ matrix.branch }}
path: isv-*.log
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
add: synsets
message: 'synsets: import from new_interslavic_words_list'
author_name: Medžuslovjansky Bot
author_email: [email protected]