www-from-model/.forgejo/workflows/update_person_pages.yaml
Michał Szczepanik 6cb2a958ff
All checks were successful
Deploy on webserver / Build site and deploy on success (push) Successful in 1m14s
ci: remove commented out step
Removed step was carried over from the TRR website generation and
involved cloning a repository with scripts for processing the
metadata. It got commented out in 562c49e7d6 and a TODO was added
saying that the scripts should be generalized and moved to a more
central repo.

Given the current tendency to use generic tools from
orinoco/query-things (a.k.a qrg, qri) as much as possible, it seems
unlikely that we will be going back to having a dedicated repo for
scripts. If we do, it won't be difficult to create the additional
checkup step again. As it is, keeping the commented out section was
more distracting than helpful.
2026-03-19 15:29:14 +01:00

37 lines
1.2 KiB
YAML

name: Update person pages
on:
schedule:
- cron: '0 3 * * 1-5'
workflow_dispatch:
env:
DUMPTHINGS_APIURL: https://pool.psychoinformatics.de/api
jobs:
create_pages:
runs-on: debian-latest
if: ${{ forgejo.repository == 'www/www-from-model' }}
outputs:
committed: ${{ steps.commit.outputs.committed }}
steps:
- name: Checkout this
id: websitecheckout
uses: https://hub.datalad.org/forgejo/datalad-clone-action@v1
with:
ref: main
get_file_content: false
recursive: false
- name: Prepare environment
uses: ./.forgejo/actions/prep-metadata-query
- name: Process metadata
run: |
dtc get-records ${DUMPTHINGS_APIURL} public -C XYZPerson \
| qri filter-linked-pid public xyzrins:. associated_with \
| qri inline-records -c public -p delegated_by -p delegated_by::roles -p identifiers::creator \
| qri render-record page_templates/person.md.j2 \
'content/{annotations[xyzrins:annotation-tags/psyinf-ns-id]}/_index.md' \
'content/{__pid_curie_reference}/_index.md'
- name: Deposit changes
uses: ./.forgejo/actions/deposit-changes