@@ -35,21 +35,21 @@ jobs:
35
35
# Prepare the environment and let the requestor know we've accepted the command
36
36
#
37
37
- name : Acknowledge command
38
- uses : actions/github-script@v3
38
+ uses : actions/github-script@v6
39
39
with :
40
40
script : |
41
41
const owner = context.payload.organization.login;
42
42
const repo = context.payload.repository.name;
43
43
const comment_id = context.payload.comment.id;
44
44
45
- github.reactions.createForIssueComment({
45
+ github.rest. reactions.createForIssueComment({
46
46
owner,
47
47
repo,
48
48
comment_id,
49
49
content: '+1'
50
50
});
51
51
52
- const { data: pull_request } = await github.pulls.get({
52
+ const { data: pull_request } = await github.rest. pulls.get({
53
53
owner,
54
54
repo,
55
55
pull_number: context.payload.issue.number,
@@ -123,15 +123,15 @@ jobs:
123
123
#
124
124
- name : Post success result
125
125
if : success()
126
- uses : actions/github-script@v3
126
+ uses : actions/github-script@v6
127
127
with :
128
128
script : |
129
129
const owner = context.payload.organization.login;
130
130
const repo = context.payload.repository.name;
131
131
const comment_id = context.payload.comment.id;
132
132
const requestor = context.payload.comment.user.login;
133
133
134
- github.reactions.createForIssueComment({
134
+ github.rest. reactions.createForIssueComment({
135
135
owner,
136
136
repo,
137
137
comment_id,
@@ -142,7 +142,7 @@ jobs:
142
142
const body = `@${requestor} here is your requested Storybook deployment:\n\n` +
143
143
`:rocket: [${url}](${url})`
144
144
145
- await github.issues.createComment({
145
+ await github.rest. issues.createComment({
146
146
owner,
147
147
repo,
148
148
issue_number: process.env.GITHUB_PR,
@@ -154,22 +154,22 @@ jobs:
154
154
#
155
155
- name : Post failure information
156
156
if : failure()
157
- uses : actions/github-script@v3
157
+ uses : actions/github-script@v6
158
158
with :
159
159
script : |
160
160
const owner = context.payload.organization.login;
161
161
const repo = context.payload.repository.name;
162
162
const comment_id = context.payload.comment.id;
163
163
const requestor = context.payload.comment.user.login;
164
164
165
- github.reactions.createForIssueComment({
165
+ github.rest. reactions.createForIssueComment({
166
166
owner,
167
167
repo,
168
168
comment_id,
169
169
content: 'eyes'
170
170
});
171
171
172
- const { data: run } = await github.actions.getWorkflowRun({
172
+ const { data: run } = await github.rest. actions.getWorkflowRun({
173
173
owner,
174
174
repo,
175
175
run_id: process.env.GITHUB_RUN_ID,
@@ -179,7 +179,7 @@ jobs:
179
179
`@${requestor} deploy action failed, please see `+
180
180
`[the workflow run details](${run.html_url}) for more information.`;
181
181
182
- await github.issues.createComment({
182
+ await github.rest. issues.createComment({
183
183
owner,
184
184
repo,
185
185
issue_number: process.env.GITHUB_PR,
0 commit comments