urcomputeringpal/Run a TypeScript function
Helper workflow wrapping actions/github-script with TypeScript
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | The GitHub token used to create an authenticated client | — | ${{ github.token }} |
| path | Path to the functions | yes | ${{ github.workspace }}/.github |
| dist | The primary path to the generated files inside your path directory. Your build script should generate an index.js at this path. | — | dist |
| build | Build command. This command is expected to generate an index.js in the path directory. | — | npm run build |
| function | Name of the function to call | — | "" |
| args | Arguments to pass to the function | — | {github, context, core, exec, io, fetch} |
| 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. | — | ${{ runner.debug == '1' }} |
| user-agent | An optional user-agent string | — | actions/github-script |
| previews | A comma-separated list of API previews to accept | — | — |
| result-encoding | How the result will be encoded. Either "string" or "json" (default "string"). | — | string |
| retries | The number of times to retry a request | — | 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 | — | 400,401,403,404,422 |
Outputs
| name | description |
|---|---|
| result | Result of the script |
| module | Module to import if calling actions/github-script directly |