-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.74 KB
/
process-changes.yaml
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
53
54
name: Process changes
on:
schedule:
- cron: "30 5 * * *"
jobs:
process-changes:
runs-on: ubuntu-latest
steps:
- name: Checkout data repository
uses: actions/checkout@v4
with:
path: ./data
- name: Checkout code repository
uses: actions/checkout@v4
with:
path: ./code
repository: colonial-heritage/integration
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install and build packages
run: |
cd ./code
npm ci
npm run build
- name: Fetch IRIs of changed resources
run: |
cd ./data
../code/packages/iiif-change-processor/dist/cli.js fetch \
--collection-iri "https://iiif.bodleian.ox.ac.uk/iiif/activity/all-changes" \
--file-with-run "./run.nt" \
--file-with-metadata "$RUNNER_TEMP/metadata.csv" \
--dir-with-queue "./queue" \
--number-of-lines-per-file-with-metadata 5000 \
--wait-between-requests 0
- name: Process changed resources
run: |
cd ./data
../code/packages/iiif-change-processor/dist/cli.js process \
--dir-with-queue "./queue" \
--dir-with-resources "./resources" \
--wait-between-requests 0 \
--number-of-concurrent-requests 25
- name: Save changed resources to repository
run: |
cd ./data
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit --quiet -a -m "Save changes" || true
git push --force -u origin