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
+24-18Lines changed: 24 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,12 @@ 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
+
56
62
### V7
57
63
58
64
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 +97,7 @@ and potential `SyntaxError`s when the expression is not valid JavaScript code (p
91
97
To pass inputs, set `env` vars on the action step and reference them in your script with `process.env`:
92
98
93
99
```yaml
94
-
- uses: actions/github-script@v7
100
+
- uses: actions/github-script@v8
95
101
env:
96
102
TITLE: ${{ github.event.pull_request.title }}
97
103
with:
@@ -110,7 +116,7 @@ The return value of the script will be in the step's outputs under the
110
116
"result" key.
111
117
112
118
```yaml
113
-
- uses: actions/github-script@v7
119
+
- uses: actions/github-script@v8
114
120
id: set-result
115
121
with:
116
122
script: return "Hello!"
@@ -129,7 +135,7 @@ output of a github-script step. For some workflows, string encoding is preferred
129
135
`result-encoding` input:
130
136
131
137
```yaml
132
-
- uses: actions/github-script@v7
138
+
- uses: actions/github-script@v8
133
139
id: my-script
134
140
with:
135
141
result-encoding: string
@@ -141,7 +147,7 @@ output of a github-script step. For some workflows, string encoding is preferred
141
147
By default, requests made with the `github` instance will not be retried. You can configure this with the `retries` option:
142
148
143
149
```yaml
144
-
- uses: actions/github-script@v7
150
+
- uses: actions/github-script@v8
145
151
id: my-script
146
152
with:
147
153
result-encoding: string
@@ -159,7 +165,7 @@ In this example, request failures from `github.rest.issues.get()` will be retrie
159
165
You can also configure which status codes should be exempt from retries via the `retry-exempt-status-codes` option:
160
166
161
167
```yaml
162
-
- uses: actions/github-script@v7
168
+
- uses: actions/github-script@v8
163
169
id: my-script
164
170
with:
165
171
result-encoding: string
@@ -188,7 +194,7 @@ By default, github-script will use the token provided to your workflow.
188
194
189
195
```yaml
190
196
- name: View context attributes
191
-
uses: actions/github-script@v7
197
+
uses: actions/github-script@v8
192
198
with:
193
199
script: console.log(context)
194
200
```
@@ -204,7 +210,7 @@ jobs:
204
210
comment:
205
211
runs-on: ubuntu-latest
206
212
steps:
207
-
- uses: actions/github-script@v7
213
+
- uses: actions/github-script@v8
208
214
with:
209
215
script: |
210
216
github.rest.issues.createComment({
@@ -226,7 +232,7 @@ jobs:
226
232
apply-label:
227
233
runs-on: ubuntu-latest
228
234
steps:
229
-
- uses: actions/github-script@v7
235
+
- uses: actions/github-script@v8
230
236
with:
231
237
script: |
232
238
github.rest.issues.addLabels({
@@ -248,7 +254,7 @@ jobs:
248
254
welcome:
249
255
runs-on: ubuntu-latest
250
256
steps:
251
-
- uses: actions/github-script@v7
257
+
- uses: actions/github-script@v8
252
258
with:
253
259
script: |
254
260
// Get a list of all issues created by the PR opener
0 commit comments