-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.19 KB
/
render-transcriptions.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
# documentation awaits instantiation
name: Generate and cache diplomatic, annotated, and fluid transcriptions
on:
push:
branches:
- 'dev'
paths:
- 'data/sources/**/annotatedTranscripts/**/*.xml'
- 'data/sources/**/diplomaticTranscripts/**/*.xml'
workflow_dispatch:
jobs:
build:
name: Generate Cache files
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: ensure cache
run: mkdir -p cache
- name: run Docker image
run: docker run --rm -v $(pwd)/data:/usr/src/app/data -v $(pwd)/cache:/usr/src/app/cache ghcr.io/beethovenswerkstatt/liquifier:latest node index.js
# check repo status before push to avoid overlapping commits
- name: configure git
run: |
echo "Configuring git..."
git config user.name "github-actions"
git config user.email "[email protected]"
- name: Commit
run: |
git add .
git commit -m "generate and cache transcriptions for @${{ github.sha }}"
git push