This commit is contained in:
Jonathan Clem
2020-02-28 09:18:07 -05:00
parent 0cb5c91bd3
commit 80a5e943b4
3 changed files with 9 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ See [octokit/rest.js](https://octokit.github.io/rest.js/) for the API client
documentation. documentation.
**Note** This action is still a bit of an experiment—the API may change in **Note** This action is still a bit of an experiment—the API may change in
*future versions. 🙂 future versions. 🙂
## Development ## Development
@@ -42,7 +42,7 @@ jobs:
comment: comment:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/github-script@0.6.0 - uses: actions/github-script@0.8.0
with: with:
github-token: ${{secrets.GITHUB_TOKEN}} github-token: ${{secrets.GITHUB_TOKEN}}
script: | script: |
@@ -64,7 +64,7 @@ jobs:
apply-label: apply-label:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/github-script@0.6.0 - uses: actions/github-script@0.8.0
with: with:
github-token: ${{secrets.GITHUB_TOKEN}} github-token: ${{secrets.GITHUB_TOKEN}}
script: | script: |
@@ -85,7 +85,7 @@ jobs:
welcome: welcome:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/github-script@0.6.0 - uses: actions/github-script@0.8.0
with: with:
github-token: ${{secrets.GITHUB_TOKEN}} github-token: ${{secrets.GITHUB_TOKEN}}
script: | script: |
@@ -123,14 +123,13 @@ You can use the `github` object to access the Octokit API. For
instance, `github.request` instance, `github.request`
```yaml ```yaml
on: on: pull_request
pull_request
jobs: jobs:
diff: diff:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/github-script@0.6.0 - uses: actions/github-script@0.8.0
with: with:
github-token: ${{secrets.GITHUB_TOKEN}} github-token: ${{secrets.GITHUB_TOKEN}}
script: | script: |
@@ -148,9 +147,8 @@ By default, the JSON-encoded return value of the function is set as the "result"
output of a github-script step. For some workflows, string encoding is preferred. This option can be set using the output of a github-script step. For some workflows, string encoding is preferred. This option can be set using the
`result-encoding` input: `result-encoding` input:
```yaml ```yaml
- uses: actions/github-script@0.6.0 - uses: actions/github-script@0.8.0
with: with:
github-token: ${{secrets.GITHUB_TOKEN}} github-token: ${{secrets.GITHUB_TOKEN}}
result-encoding: string result-encoding: string

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "github-script", "name": "github-script",
"version": "0.6.0", "version": "0.8.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,7 +1,7 @@
{ {
"name": "github-script", "name": "github-script",
"description": "A GitHub action for executing a simple script", "description": "A GitHub action for executing a simple script",
"version": "0.6.0", "version": "0.8.0",
"author": "GitHub", "author": "GitHub",
"dependencies": { "dependencies": {
"@actions/core": "^1.2.2", "@actions/core": "^1.2.2",