www-from-model/.forgejo/workflows/update_objective_pages.yaml
Michael Hanke 930730f0dd
All checks were successful
Deploy on webserver / Build site and deploy on success (push) Successful in 43s
rf: migrate to qri entrypoint
2026-03-01 06:30:45 +01:00

26 lines
780 B
YAML

name: Update objective pages
on:
schedule:
- cron: '0 2 * * 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 -C XYZObjective \
| qri inline-records -p part_of -c public \
| qri inline-records -p depends_on -c public \
| qri render-record page_templates/objective.md.j2 'content/{__pid_curie_reference}/_index.md'
- name: Deposit changes
uses: ./.forgejo/actions/deposit-changes