NebraLtd / Helium-Guides

Documentation repository for the Helium HNT Hotspot Miner Range from Nebra Ltd. Available to buy from https://nebra.com and https://pi-supply.com
https://helium.nebra.com
MIT License
30 stars 24 forks source link

Change PDF generator to only generate when specific files are updated #233

Closed shawaj closed 2 years ago

shawaj commented 2 years ago

Currently, I have set the PDF generator to be on a schedule of once per day.

https://github.com/NebraLtd/Helium-Guides/blob/main/.github/workflows/generate-pdfs.yml

This can be changed so that it only regenerates when certain files that are used for generating PDFs are changed.

Probably this can be further improved to also run the script using GitHub Actions "strategy matrix" for the different files rather than hard coded in the gen-pdfs.sh file

shawaj commented 2 years ago

Fixed in https://github.com/NebraLtd/Helium-Guides/commit/c52099372c29ca2a206bfa723248c81b4fc18222

Only runs if files ending in -overview.md or -quick-start.md are updated

Can also be manually run