Import from Google Sheets #590
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: 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] |