mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 08:06:23 +00:00
When the action 'debug' input is not set, default to the current runner debug state. This ensures that the Octokit client request logs are included automatically when you re-run a job with debug enabled.
38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
name: GitHub Script
|
|
author: GitHub
|
|
description: Run simple scripts using the GitHub client
|
|
branding:
|
|
color: blue
|
|
icon: code
|
|
inputs:
|
|
script:
|
|
description: The script to run
|
|
required: true
|
|
github-token:
|
|
description: The GitHub token used to create an authenticated client
|
|
default: ${{ github.token }}
|
|
required: false
|
|
debug:
|
|
description: 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.
|
|
default: ${{ runner.debug == '1' }}
|
|
user-agent:
|
|
description: An optional user-agent string
|
|
default: actions/github-script
|
|
previews:
|
|
description: A comma-separated list of API previews to accept
|
|
result-encoding:
|
|
description: Either "string" or "json" (default "json")—how the result will be encoded
|
|
default: json
|
|
retries:
|
|
description: The number of times to retry a request
|
|
default: "0"
|
|
retry-exempt-status-codes:
|
|
description: A comma separated list of status codes that will NOT be retried e.g. "400,500". No effect unless `retries` is set
|
|
default: 400,401,403,404,422 # from https://github.com/octokit/plugin-retry.js/blob/9a2443746c350b3beedec35cf26e197ea318a261/src/index.ts#L14
|
|
outputs:
|
|
result:
|
|
description: The return value of the script, stringified with `JSON.stringify`
|
|
runs:
|
|
using: node16
|
|
main: dist/index.js
|