fribyte-code / fribyte.no

Official website for friByte 🌐
https://fribyte.no
GNU General Public License v3.0
2 stars 8 forks source link

Add workflow that automatically updates documents #82

Closed Kremtastic closed 1 month ago

Kremtastic commented 5 months ago

Add a workflow that automates the process of fetching and updating documents (from the admin-repo) for the website.

mathiash98 commented 5 months ago

This looks promising! I have not taken a deep look yet

Kremtastic commented 5 months ago

I haven't truly tested if this works yet. It seemed like it had to be added to the main branch first for the workflow to actually be able to be triggered.

mathiash98 commented 5 months ago

I haven't truly tested if this works yet. It seemed like it had to be added to the main branch first for the workflow to actually be able to be triggered.

Yes that is correct, this workflow will then copy all dagsordener from admin repo, convert to toml and make them available in fribyte.no.

I'm a bit worried that a public git repo will have access to stuff in a private git repo, hmmm. Maybe we should add this github action in the admin repo instead and push files to fribyte.no repo.

polsevev commented 2 months ago

I would assume setting this up as a separate folder on the host system of fribyte.no, then pushing files from an action in the admin repo is a more secure way of performing this. As having an action on PR that triggers a pull from a private repo is something i am not comfortable with.