update person page generation workflow to adopt TRR workflow #5
8 changed files with 35 additions and 51 deletions
|
|
@ -9,17 +9,39 @@ on:
|
|||
jobs:
|
||||
create_pages:
|
||||
runs-on: debian-latest
|
||||
if: ${{ forgejo.repository == 'www/www-from-model' }}
|
||||
outputs:
|
||||
committed: ${{ steps.commit.outputs.committed }}
|
||||
|
||||
steps:
|
||||
- name: Checkout project
|
||||
uses: actions/checkout@v4
|
||||
- name: Checkout this
|
||||
id: websitecheckout
|
||||
uses: https://hub.datalad.org/forgejo/datalad-clone-action@v1
|
||||
with:
|
||||
ref: main
|
||||
get_file_content: false
|
||||
recursive: false
|
||||
|
||||
# this step clones code for additional record processing and filtering.
|
||||
# TODO: that code needs to be generalized before being used here, maybe
|
||||
# also come from a more central/generic repo than the trr resources
|
||||
#- name: Checkout code
|
||||
# id: codecheckout
|
||||
# uses: https://hub.datalad.org/forgejo/datalad-clone-action@v1
|
||||
# with:
|
||||
# repository: https://hub.trr379.de/q02/pool-publication-page
|
||||
# get_file_content: false
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v6
|
||||
- name: Install qrg suite
|
||||
run: uv tool install https://hub.psychoinformatics.de/datalink/query-rse-group.git --with-executables-from dump-things-pyclient
|
||||
run: |
|
||||
uv tool install https://hub.psychoinformatics.de/datalink/query-rse-group.git --with-executables-from dump-things-pyclient
|
||||
uv tool install git-annex
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config --global user.name "Forgejo Actions"
|
||||
git config --global user.email "forgejo-actions@hub.trr379.de"
|
||||
git config --global user.name ${{ forgejo.actor }}
|
||||
git config --global user.email ${{ forgejo.actor }}@${{ forgejo.server.url }}
|
||||
git config --global credential.helper cache
|
||||
git credential approve <<EOF
|
||||
url=${{ forgejo.server_url }}
|
||||
|
|
@ -27,14 +49,18 @@ jobs:
|
|||
password=${{ forgejo.token }}
|
||||
EOF
|
||||
echo OK
|
||||
- name: Update pages
|
||||
|
||||
- name: Process metadata
|
||||
run: |
|
||||
read-pages https://pool.psychoinformatics.de/api/public/records/p/XYZPerson \
|
||||
| qrg filter-linked-pid --api-url https://pool.psychoinformatics.de/api public xyzrsens:projects/4b434ab4-929e-4d64-97e0-ff334c6a6ff2 associated_with \
|
||||
dtc read-pages https://pool.psychoinformatics.de/api/public/records/p/XYZPerson \
|
||||
| qrg filter-linked-pid --api-url https://pool.psychoinformatics.de/api public xyzrins:. associated_with \
|
||||
| qrg inline-records --api-url https://pool.psychoinformatics.de/api -c public -p delegated_by -p delegated_by::roles -p identifiers::creator \
|
||||
| qrg render-record page_templates/person.md.j2 'content/{__pid_curie_reference}/_index.md'
|
||||
|
||||
- name: Commit and push updates
|
||||
id: commit
|
||||
run: |
|
||||
git add content/persons
|
||||
git diff --quiet --cached && echo "Already up-to-date" || ( git commit -m "feat: auto-generate person pages" && git push origin )
|
||||
git commit -m "auto-generate person pages" && result=t || result=nil
|
||||
git push origin
|
||||
echo "committed=${result}" >> $FORGEJO_OUTPUT
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
title: Christian Mönch
|
||||
---
|
||||
|
||||
- [ORCID: 0000-0002-3092-0612](https://orcid.org/0000-0002-3092-0612)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
title: Stephan Heunis
|
||||
---
|
||||
|
||||
- [ORCID: 0000-0003-3503-9872](https://orcid.org/0000-0003-3503-9872)
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: Jenna Swarthout Goddard
|
||||
---
|
||||
|
||||
- [GitHub: jennaswa](https://github.com/jennaswa)
|
||||
- [ORCID: 0000-0002-0181-0828](https://orcid.org/0000-0002-0181-0828)
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
---
|
||||
title: Falko Kaule
|
||||
---
|
||||
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
---
|
||||
title: Michał Szczepanik
|
||||
---
|
||||
|
||||
Apparent in some Psychoinformatics projects, but hidden from others, his myth is both his curse and inconsistency brought to the research software engineering. Once believed to be led by research centers unknown, only curiosity now leads this wandering postdoc through the plains of research data management.
|
||||
|
||||
- [ORCID: 0000-0002-4028-2087](https://orcid.org/0000-0002-4028-2087)
|
||||
- [GitHub: mslw](https://github.com/mslw)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
title: Laura Waite
|
||||
---
|
||||
|
||||
- [ORCID: 0000-0003-2213-7465](https://orcid.org/0000-0003-2213-7465)
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
---
|
||||
title: Michael Hanke
|
||||
---
|
||||
|
||||
- [ResearchGate: Michael-Hanke-4](https://www.researchgate.net/profile/Michael-Hanke-4)
|
||||
- [LinkedIn: mhanke](https://www.linkedin.com/in/mhanke)
|
||||
- [Debian: mih](https://qa.debian.org/developer.php?login=mih)
|
||||
- [ORCID: 0000-0001-6398-6370](https://orcid.org/0000-0001-6398-6370)
|
||||
- [GitHub: mih](https://github.com/mih)
|
||||
Loading…
Add table
Add a link
Reference in a new issue