Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75fbffa

Browse files
committed
Rename to github-script
1 parent 13bdf8e commit 75fbffa

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

README.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1-
# script
1+
# github-script
22

3-
This action makes it easy to quickly write a script in your workflow that uses the GitHub API and the workflow run context.
3+
This action makes it easy to quickly write a script in your workflow that
4+
uses the GitHub API and the workflow run context.
45

5-
In order to use this action, a `script` input is provided. The value of that input should be the body of an asynchronous function call. Two arguments will be provided:
6+
In order to use this action, a `script` input is provided. The value of that
7+
input should be the body of an asynchronous function call. Two arguments will
8+
be provided:
69

7-
- `github` A pre-authenticated [octokit/rest.js](https://github.com/octokit/rest.js) client
8-
- `context` An object containing the [context of the workflow run](https://github.com/actions/toolkit/tree/master/packages/github)
10+
- `github` A pre-authenticated
11+
[octokit/rest.js](https://github.com/octokit/rest.js) client
12+
- `context` An object containing the [context of the workflow
13+
run](https://github.com/actions/toolkit/tree/master/packages/github)
914

10-
Since the `script` is just a function body, these values will already be defined, so you don't have to (see examples below).
15+
Since the `script` is just a function body, these values will already be
16+
defined, so you don't have to (see examples below).
1117

12-
See [octokit/rest.js](https://octokit.github.io/rest.js/) for the API client documentation.
18+
See [octokit/rest.js](https://octokit.github.io/rest.js/) for the API client
19+
documentation.
20+
21+
**Note** This action is still a bit of an experiment—the API may change in
22+
*future versions. 🙂
1323

1424
## Examples
1525

@@ -23,7 +33,7 @@ jobs:
2333
comment:
2434
runs-on: ubuntu-latest
2535
steps:
26-
- uses: actions/script@1.0.0
36+
- uses: actions/github-script@0.1.0
2737
with:
2838
github-token: ${{github.token}}
2939
script: |
@@ -40,7 +50,7 @@ jobs:
4050
apply-label:
4151
runs-on: ubuntu-latest
4252
steps:
43-
- uses: actions/script@1.0.0
53+
- uses: actions/github-script@0.1.0
4454
with:
4555
github-token: ${{github.token}}
4656
script: |
@@ -56,7 +66,7 @@ jobs:
5666
welcome:
5767
runs-on: ubuntu-latest
5868
steps:
59-
- uses: actions/script@1.0.0
69+
- uses: actions/github-script@0.1.0
6070
with:
6171
github-token: ${{github.token}}
6272
script: |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Script
1+
name: GitHub Script
22
description: An action for running simple scripts with a GitHub client
33
branding:
44
color: blue

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"private": true,
3+
"license": "MIT",
24
"dependencies": {
35
"@actions/core": "^1.0.0",
46
"@actions/github": "^1.0.0"

0 commit comments

Comments
 (0)