workflows: refextract templating

* fixes refextract task.

* Adds refextract templating.