Action to check syntax for YAGPDB template files.
Required: A glob for files to run the syntax checker on. The glob syntax is described by the documentation for the Match
function from the Go library doublestar.
Output from the syntax checker. Each line will contain an error, formatted like such:
<filepath>: template: :<line>: <error message>
uses: jo3-l/action-check-yag-tmpl-syntax@v2.2.2
with:
include: '**/*.go.tmpl'
New template functions are queried for on a weekly basis using yagfuncdata
through a cron-based GitHub action. If changes are detected, a PR is automatically issued.
Changes to the template executor itself (e.g., addition of new keywords) are more involved and require manual intervention, though this is rare. (Specifically, the template
folder needs to be synchronized with its upstream counterpart, yagpdb/lib/template
.)
action-check-yag-tmpl-syntax © Joe L. under the MIT license. Authored and maintained by Joe L.
GitHub @jo3-l