You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-18Lines changed: 26 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,14 @@ documentation.
53
53
54
54
## Breaking Changes
55
55
56
+
### V8
57
+
58
+
Version 8 of this action updated the runtime to Node 24 - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions
59
+
60
+
All scripts are now run with Node 24 instead of Node 20 and are affected by any breaking changes between Node 20 and 24.
61
+
62
+
**This requires a minimum Actions Runner version of [v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1)**
63
+
56
64
### V7
57
65
58
66
Version 7 of this action updated the runtime to Node 20 - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions
@@ -91,7 +99,7 @@ and potential `SyntaxError`s when the expression is not valid JavaScript code (p
91
99
To pass inputs, set `env` vars on the action step and reference them in your script with `process.env`:
92
100
93
101
```yaml
94
-
- uses: actions/github-script@v7
102
+
- uses: actions/github-script@v8
95
103
env:
96
104
TITLE: ${{ github.event.pull_request.title }}
97
105
with:
@@ -110,7 +118,7 @@ The return value of the script will be in the step's outputs under the
110
118
"result" key.
111
119
112
120
```yaml
113
-
- uses: actions/github-script@v7
121
+
- uses: actions/github-script@v8
114
122
id: set-result
115
123
with:
116
124
script: return "Hello!"
@@ -129,7 +137,7 @@ output of a github-script step. For some workflows, string encoding is preferred
129
137
`result-encoding` input:
130
138
131
139
```yaml
132
-
- uses: actions/github-script@v7
140
+
- uses: actions/github-script@v8
133
141
id: my-script
134
142
with:
135
143
result-encoding: string
@@ -141,7 +149,7 @@ output of a github-script step. For some workflows, string encoding is preferred
141
149
By default, requests made with the `github` instance will not be retried. You can configure this with the `retries` option:
142
150
143
151
```yaml
144
-
- uses: actions/github-script@v7
152
+
- uses: actions/github-script@v8
145
153
id: my-script
146
154
with:
147
155
result-encoding: string
@@ -159,7 +167,7 @@ In this example, request failures from `github.rest.issues.get()` will be retrie
159
167
You can also configure which status codes should be exempt from retries via the `retry-exempt-status-codes` option:
160
168
161
169
```yaml
162
-
- uses: actions/github-script@v7
170
+
- uses: actions/github-script@v8
163
171
id: my-script
164
172
with:
165
173
result-encoding: string
@@ -188,7 +196,7 @@ By default, github-script will use the token provided to your workflow.
188
196
189
197
```yaml
190
198
- name: View context attributes
191
-
uses: actions/github-script@v7
199
+
uses: actions/github-script@v8
192
200
with:
193
201
script: console.log(context)
194
202
```
@@ -204,7 +212,7 @@ jobs:
204
212
comment:
205
213
runs-on: ubuntu-latest
206
214
steps:
207
-
- uses: actions/github-script@v7
215
+
- uses: actions/github-script@v8
208
216
with:
209
217
script: |
210
218
github.rest.issues.createComment({
@@ -226,7 +234,7 @@ jobs:
226
234
apply-label:
227
235
runs-on: ubuntu-latest
228
236
steps:
229
-
- uses: actions/github-script@v7
237
+
- uses: actions/github-script@v8
230
238
with:
231
239
script: |
232
240
github.rest.issues.addLabels({
@@ -248,7 +256,7 @@ jobs:
248
256
welcome:
249
257
runs-on: ubuntu-latest
250
258
steps:
251
-
- uses: actions/github-script@v7
259
+
- uses: actions/github-script@v8
252
260
with:
253
261
script: |
254
262
// Get a list of all issues created by the PR opener
0 commit comments