This generates EmmyLua annotations from the Nanos World API repository via a GitHub workflow and pushes them to the docgen-output branch
Right now this runs only when this branch is pushed to, however the final version will periodically check the latest commit to the API to see if the docs need rebuilding
You can run the action locally using https://github.com/github/local-action:
npm install- Copy
.env.templateto.env.local - Set
INPUT_GITHUB-TOKENto a personal access token with access to the following endpoints:GET /repos/{owner}/{repo}/git/trees/{tree_sha}GET /repos/{owner}/{repo}/contents/{path}- You will need to set a lifetime shorter than 1 year as required by the nanos world GitHub org
npm run start