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
+22-14
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,15 @@ defined, so you don't have to import them (see examples below).
32
32
See [octokit/rest.js](https://octokit.github.io/rest.js/) for the API client
33
33
documentation.
34
34
35
-
## Breaking changes in V5
35
+
## Breaking Changes
36
+
37
+
### Breaking changes in V6
38
+
39
+
Version 6 of this action updated the runtime to Node 16 - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-using-nodejs-v16
40
+
41
+
All scripts are now run with Node 16 instead of Node 12 and are affected by any breaking changes between Node 12 and 16.
42
+
43
+
### Breaking changes in V5
36
44
37
45
Version 5 of this action includes the version 5 of `@actions/github` and `@octokit/plugin-rest-endpoint-methods`. As part of this update, the Octokit context available via `github` no longer has REST methods directly. These methods are available via `github.rest.*` - https://github.com/octokit/plugin-rest-endpoint-methods.js/releases/tag/v5.0.0
38
46
@@ -50,7 +58,7 @@ The return value of the script will be in the step's outputs under the
50
58
"result" key.
51
59
52
60
```yaml
53
-
- uses: actions/github-script@v5
61
+
- uses: actions/github-script@v6
54
62
id: set-result
55
63
with:
56
64
script: return "Hello!"
@@ -69,7 +77,7 @@ output of a github-script step. For some workflows, string encoding is preferred
69
77
`result-encoding` input:
70
78
71
79
```yaml
72
-
- uses: actions/github-script@v5
80
+
- uses: actions/github-script@v6
73
81
id: my-script
74
82
with:
75
83
result-encoding: string
@@ -87,7 +95,7 @@ By default, github-script will use the token provided to your workflow.
87
95
88
96
```yaml
89
97
- name: View context attributes
90
-
uses: actions/github-script@v5
98
+
uses: actions/github-script@v6
91
99
with:
92
100
script: console.log(context)
93
101
```
@@ -103,7 +111,7 @@ jobs:
103
111
comment:
104
112
runs-on: ubuntu-latest
105
113
steps:
106
-
- uses: actions/github-script@v5
114
+
- uses: actions/github-script@v6
107
115
with:
108
116
script: |
109
117
github.rest.issues.createComment({
@@ -125,7 +133,7 @@ jobs:
125
133
apply-label:
126
134
runs-on: ubuntu-latest
127
135
steps:
128
-
- uses: actions/github-script@v5
136
+
- uses: actions/github-script@v6
129
137
with:
130
138
script: |
131
139
github.rest.issues.addLabels({
@@ -145,7 +153,7 @@ jobs:
145
153
welcome:
146
154
runs-on: ubuntu-latest
147
155
steps:
148
-
- uses: actions/github-script@v5
156
+
- uses: actions/github-script@v6
149
157
with:
150
158
script: |
151
159
// Get a list of all issues created by the PR opener
0 commit comments