fix(ci): run git add in the correct directory #24

Merged
mih merged 1 commit from msz/www.trr379.de:msz-fix-ci into main 2026-02-26 17:56:59 +00:00

View file

@ -75,8 +75,6 @@ jobs:
| uv run filters/join-association.py --inline --pop --field-name x_associated_projects - .cache/projects.jsonl associated_with \ | uv run filters/join-association.py --inline --pop --field-name x_associated_projects - .cache/projects.jsonl associated_with \
| uv run filters/infer-site.py - ${{ steps.datacheckout.outputs.path }}/v2.2-2026-01-29-ror-data.parquet - \ | uv run filters/infer-site.py - ${{ steps.datacheckout.outputs.path }}/v2.2-2026-01-29-ror-data.parquet - \
| uv run person.py - ${{ steps.websitecheckout.outputs.path }}/content/contributors | uv run person.py - ${{ steps.websitecheckout.outputs.path }}/content/contributors
git add content/contributors
git diff --quiet --cached && echo "Already up-to-date" || git commit -m "Auto-update contributors"
- name: Process projects - name: Process projects
run: | run: |
@ -85,9 +83,12 @@ jobs:
| qrg inline-records --api-url https://pool.v0.trr379.de/api/ -c public -p associated_with \ | qrg inline-records --api-url https://pool.v0.trr379.de/api/ -c public -p associated_with \
| uv run filters/join-association.py --field-name x_had_influence - .cache/trr379.jsonl influenced_by \ | uv run filters/join-association.py --field-name x_had_influence - .cache/trr379.jsonl influenced_by \
| uv run project.py - ${{ steps.websitecheckout.outputs.path }}/content/projects | uv run project.py - ${{ steps.websitecheckout.outputs.path }}/content/projects
git add content/projects
git diff --quiet --cached && echo "Already up-to-date" || git commit -m "Auto-update projects"
- name: Push updates - name: Commit and push updates
run: | run: |
cd ${{ steps.websitecheckout.outputs.path }}
git add content/contributors
git diff --quiet --cached && echo "Contributors already up-to-date" || git commit -m "Auto-update contributors"
git add content/projects
git diff --quiet --cached && echo "Projects already up-to-date" || git commit -m "Auto-update projects"
git push origin git push origin