Export 284 #4
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: Export one | |
on: | |
workflow_dispatch: | |
inputs: | |
document_id: | |
required: true | |
run-name: Export ${{ github.event.inputs.document_id }} | |
jobs: | |
export-annotations: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- run: npm ci | |
- run: mkdir -p output | |
- run: npm run export:one -- --output output/document-${{ github.event.inputs.document_id }}.nt --variable documentId=${{ github.event.inputs.document_id }} | |
env: | |
PROJECT_ID: ${{ vars.PROJECT_ID }} | |
INCEPTION_URL: ${{ vars.INCEPTION_URL }} | |
AUTH: ${{ secrets.AUTH }} | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: data-sheets | |
path: output |