tkstang/GitHub Script TypeScript Wrapper

Build a TS script and run it via actions/github-script, returning its result

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
ts-filePath to the TypeScript entry (relative to working-directory)yes
argsJSON string of arguments to pass to your TS default exportno{}
github-tokenCustom token to pass to actions/github-script (defaults to github.token)no
working-directoryDirectory to run inno.
node-versionNode.js version target for bundling (e.g., 20, 22)no22
esbuild-versionesbuild versionno0.24.0
debugWhether to tell the GitHub client to log details of its requests. true or false. Default is to run in debug mode when the GitHub Actions step debug logging is turned on.no${{ runner.debug == '1' }}
user-agentAn optional user-agent stringnoactions/github-script
result-encodingEither "string" or "json" (default "json")—how the result will be encodednojson
retriesThe number of times to retry a requestno0
retry-exempt-status-codesA comma separated list of status codes that will NOT be retried e.g. "400,500". No effect unless `retries` is setno400,401,403,404,422
previewsA comma-separated list of GraphQL API previews to acceptno""
base-urlAn optional GitHub REST API URL to connect to a different GitHub instance. For example, https://my.github-enterprise-server.com/api/v3no
namedescription
resultEncoded result returned by your TS script (from github-script)