8000 wip readme · Khan/github-script@9d1827a · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 9d1827a

Browse files
authored
wip readme
1 parent 5d0df86 commit 9d1827a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
This action makes it easy to quickly write a script in your workflow that
44
uses the GitHub API and the workflow run context.
55

6-
In order to use this action, a `script` input is provided. The value of that
6+
In order to use this action, a `script` input is provided. (you can also specify a path as `script-path`, and it will be required, and the default export will be called with (github, context, core) as arguments). The value of that
77
input should be the body of an asynchronous function call. Two arguments will
88
be provided:
99

1010
- `github` A pre-authenticated
1111
[octokit/rest.js](https://github.com/octokit/rest.js) client
1212
- `context` An object containing the [context of the workflow
1313
run](https://github.com/actions/toolkit/tree/master/packages/github)
14+
- `core` is `@actions/core`
1415

1516
Since the `script` is just a function body, these values will already be
1617
defined, so you don't have to (see examples below).

0 commit comments

Comments
 (0)
0