@@ -33,7 +33,7 @@ The return value of the script will be in the step's outputs under the
33
33
"result" key.
34
34
35
35
``` yaml
36
- - uses : actions/github-script@v1
36
+ - uses : actions/github-script@v2
37
37
id : set-result
38
38
with :
39
39
script : return "Hello!"
@@ -52,7 +52,7 @@ output of a github-script step. For some workflows, string encoding is preferred
52
52
` result-encoding` input:
53
53
54
54
` ` ` yaml
55
- - uses: actions/github-script@v1
55
+ - uses: actions/github-script@v2
56
56
id: my-script
57
57
with:
58
58
github-token: ${{secrets.GITHUB_TOKEN}}
78
78
comment:
79
79
runs-on: ubuntu-latest
80
80
steps:
81
- - uses: actions/github-script@v1
81
+ - uses: actions/github-script@v2
82
82
with:
83
83
github-token: ${{secrets.GITHUB_TOKEN}}
84
84
script: |
@@ -101,7 +101,7 @@ jobs:
101
101
apply-label:
102
102
runs-on: ubuntu-latest
103
103
steps:
104
- - uses: actions/github-script@v1
104
+ - uses: actions/github-script@v2
105
105
with:
106
106
github-token: ${{secrets.GITHUB_TOKEN}}
107
107
script: |
@@ -122,7 +122,7 @@ jobs:
122
122
welcome:
123
123
runs-on: ubuntu-latest
124
124
steps:
125
- - uses: actions/github-script@v1
125
+ - uses: actions/github-script@v2
126
126
with:
127
127
github-token: ${{secrets.GITHUB_TOKEN}}
128
128
script: |
@@ -166,7 +166,7 @@ jobs:
166
166
diff:
167
167
runs-on: ubuntu-latest
168
168
steps:
169
- - uses: actions/github-script@v1
169
+ - uses: actions/github-script@v2
170
170
with:
171
171
github-token: ${{secrets.GITHUB_TOKEN}}
172
172
script: |
@@ -195,7 +195,7 @@ jobs:
195
195
runs-on: ubuntu-latest
196
196
steps:
197
197
- uses: actions/checkout@v2
198
- - uses: actions/github-script@v1
198
+ - uses: actions/github-script@v2
199
199
with:
200
200
script: |
201
201
const path = require('path')
0 commit comments