www-from-model/.forgejo/workflows/update_frontpage.yaml
Michael Hanke f361a9717f
All checks were successful
Deploy on webserver / Build site and deploy on success (push) Successful in 31s
feat: taxonomy links to project that are part of a project
2026-03-01 14:12:44 +01:00

28 lines
957 B
YAML

name: Update frontpage
# run daily (5:15 on weekdays) and on manual dispatch
on:
schedule:
- cron: '0 1 * * 1-5'
workflow_dispatch:
env:
DUMPTHINGS_APIURL: https://pool.psychoinformatics.de/api
jobs:
create_pages:
runs-on: debian-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Prepare environment
uses: ./.forgejo/actions/prep-metadata-query
- name: Update pages
run: |
dtc get-records $DUMPTHINGS_APIURL public --pid xyzrins:. \
| qri inject-links-pid --link generated_by generated \
| qri inject-links-pid --link part_of parts \
| qri inline-records -c public -p associated_with -p associated_with::roles -p identifiers::creator -p part_of \
| qri render-record page_templates/project.md.j2 'content/{__pid_curie_reference}/_index.md'
- name: Deposit changes
uses: ./.forgejo/actions/deposit-changes