bonitasoft / bonita-documentation-site

The sources of the Bonita Documentation site
https://documentation.bonitasoft.com/
GNU General Public License v2.0
9 stars 5 forks source link

Convert build/publish preview actions to reusable workflow #700

Closed tbouffard closed 1 month ago

tbouffard commented 5 months ago

Currently, we use "composite actions, they produce hard to read logs and when used in documentation content repo, they are the sole step of the workflow. When we created them, the concept of "reusable workflow" didn't exist, that's why we choose this "composite action" implementation. "Reusable workflow" are more convenient, so we could switch from action to reusable workflow.

Notice that in, the build-pr-site action that does the references validation, the fail-on-warning input default value should be true as we always want to fail on validation error. The current default is set to false, it was set to this value to be able to have a smooth transition in all repo during the introduction of Antora Atlas. The transition is now over, so we can change the default value.

https://github.com/bonitasoft/bonita-documentation-site/blob/ad588f0d009dfa126b069340209a6e6874ec1382/.github/actions/build-pr-site/action.yml#L17

The build-pr-site action could be replaced by a reusable workflow as well.

Tasks