silverlyra/JavaScript action
Run a JavaScript snippet within a GitHub workflow
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| script | The script to run (or a script filename) | yes | — |
| name | Base filename to assign to the script (if inline) | — | script |
| input | Input data to make available to your script | no | "" |
| input-encoding | Use "json" to JSON-decode the "input" input, or "string" to expose the raw input string to your function. (default: "json") | yes | json |
| result-encoding | Use "json" to JSON-encode the script's return value, or "string" to return a string directly. (default: "json") | yes | json |
| cwd | Directory to change into | — | . |
| github-token | Create an authenticated GitHub client | — | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| result | What the script returned, encoded according to "result-encoding" |