Skip to content

CogNet 2024-12-16 import #48

CogNet 2024-12-16 import

CogNet 2024-12-16 import #48

Workflow file for this run

name: Merge into Google Sheets
on:
pull_request_target:
types: [closed]
branches: [main]
jobs:
push:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: the_changes
uses: tj-actions/changed-files@v45
with:
files: |
synsets/**/*.xml
- 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: Push changes to Google Sheets
id: push_changes
continue-on-error: true
run: |
npx isv synsets push --partial --only ${{ steps.the_changes.outputs.all_changed_files }}
env:
ISV_DEBUG: 'true'
ISV_ENCRYPTION_KEY: ${{ secrets.ISV_ENCRYPTION_KEY }}
ISV_ENCRYPTION_IV: ${{ secrets.ISV_ENCRYPTION_IV }}
ISV_NOTE: ${{ github.event.pull_request.body }}
JWT_TOKEN: ${{ secrets.JWT_TOKEN }}
- name: Upload log file
if: always()
uses: actions/upload-artifact@v4
with:
name: database-engine-log
path: isv-*.log
- name: Check push result
if: steps.push_changes.outcome == 'failure'
run: exit 1