skohub-io / skohub-pages

https://skohub-io.github.io/skohub-pages/
Apache License 2.0
13 stars 119 forks source link

Adjust GitHub action to rebuild vocab with every change #15

Closed acka47 closed 9 months ago

acka47 commented 9 months ago

Currently, the vocab is only built anwe with Gatsby when a SKOS file was updated:

https://github.com/skohub-io/skohub-docker-vocabs/blob/e36407f9579da48b2892d67641d89c98fe3c55cc/.github/workflows/main.yml#L44-L58

It took some time for me to notice this. Working on a repo by students and a fork of it, I would twice adjust the turtle file to correct something while the main.yml fpr GitHub Actions wasn't correct. Thus, the vocab would not build. When I correct the main.yml, it would not build either as the job was skipped because the commit did not contain a change to the SKOS file.

acka47 commented 9 months ago

Having thought about this more, I think it would suffice to add the .github/workflows/main.yml to the if clause in line 44 of the main.yml file.