tkstang/GitHub Script TypeScript Wrapper
Build a TS script and run it via actions/github-script, returning its result
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| ts-file | Path to the TypeScript entry (relative to working-directory) | yes | — |
| args | JSON string of arguments to pass to your TS default export | no | {} |
| github-token | Custom token to pass to actions/github-script (defaults to github.token) | no | — |
| working-directory | Directory to run in | no | . |
| node-version | Node.js version target for bundling (e.g., 20, 22) | no | 22 |
| esbuild-version | esbuild version | no | 0.24.0 |
| debug | Whether 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-agent | An optional user-agent string | no | actions/github-script |
| result-encoding | Either "string" or "json" (default "json")—how the result will be encoded | no | json |
| retries | The number of times to retry a request | no | 0 |
| retry-exempt-status-codes | A comma separated list of status codes that will NOT be retried e.g. "400,500". No effect unless `retries` is set | no | 400,401,403,404,422 |
| previews | A comma-separated list of GraphQL API previews to accept | no | "" |
| base-url | An optional GitHub REST API URL to connect to a different GitHub instance. For example, https://my.github-enterprise-server.com/api/v3 | no | — |
Outputs
| name | description |
|---|---|
| result | Encoded result returned by your TS script (from github-script) |