roboticslab-uc3m / developer-manual

Developer Manual @ roboticslab-uc3m
https://robots.uc3m.es/developer-manual/
1 stars 1 forks source link

Automate contributor list via GH Actions #48

Closed PeterBowman closed 11 months ago

PeterBowman commented 11 months ago

I'd like to add a workflow to launch our update-contributors.py script (introduced in https://github.com/roboticslab-uc3m/developer-manual/issues/47).

Dispatch options:

PeterBowman commented 11 months ago

Done at:

A new contributors.yml workflow runs the update script (either on demand or following an edit in dev-aliases.yml), tests whether docs/contributors.md was changed and, if true, commits and pushes the changes, then calls the gh-pages.yml workflow to regenerate the static site on GH Pages.

Refs:

I created a new personal access token (PAT) with the permissions detailed here: https://github.com/roboticslab-uc3m/developer-manual/issues/47#issuecomment-1680529359. Keep in mind it lasts only one year due to limits on the maximum expiry time. I'd rather use GITHUB_TOKEN (with extended permissions if necessary), but this is not possible at the moment: https://github.com/orgs/community/discussions/46566. This token is accessed through the DEV_MANUAL action secret (org settings).