Skip to content

Commit 8c23790

Browse files
authored
Merge pull request #1103 from filecoin-project/dependabot/github_actions/actions/github-script-6
Bump actions/github-script from 3 to 6
2 parents 1020d75 + 336f6e0 commit 8c23790

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/deploy-storybook-on-demand.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ jobs:
3535
# Prepare the environment and let the requestor know we've accepted the command
3636
#
3737
- name: Acknowledge command
38-
uses: actions/github-script@v3
38+
uses: actions/github-script@v6
3939
with:
4040
script: |
4141
const owner = context.payload.organization.login;
4242
const repo = context.payload.repository.name;
4343
const comment_id = context.payload.comment.id;
4444
45-
github.reactions.createForIssueComment({
45+
github.rest.reactions.createForIssueComment({
4646
owner,
4747
repo,
4848
comment_id,
4949
content: '+1'
5050
});
5151
52-
const { data: pull_request } = await github.pulls.get({
52+
const { data: pull_request } = await github.rest.pulls.get({
5353
owner,
5454
repo,
5555
pull_number: context.payload.issue.number,
@@ -123,15 +123,15 @@ jobs:
123123
#
124124
- name: Post success result
125125
if: success()
126-
uses: actions/github-script@v3
126+
uses: actions/github-script@v6
127127
with:
128128
script: |
129129
const owner = context.payload.organization.login;
130130
const repo = context.payload.repository.name;
131131
const comment_id = context.payload.comment.id;
132132
const requestor = context.payload.comment.user.login;
133133
134-
github.reactions.createForIssueComment({
134+
github.rest.reactions.createForIssueComment({
135135
owner,
136136
repo,
137137
comment_id,
@@ -142,7 +142,7 @@ jobs:
142142
const body = `@${requestor} here is your requested Storybook deployment:\n\n` +
143143
`:rocket: [${url}](${url})`
144144
145-
await github.issues.createComment({
145+
await github.rest.issues.createComment({
146146
owner,
147147
repo,
148148
issue_number: process.env.GITHUB_PR,
@@ -154,22 +154,22 @@ jobs:
154154
#
155155
- name: Post failure information
156156
if: failure()
157-
uses: actions/github-script@v3
157+
uses: actions/github-script@v6
158158
with:
159159
script: |
160160
const owner = context.payload.organization.login;
161161
const repo = context.payload.repository.name;
162162
const comment_id = context.payload.comment.id;
163163
const requestor = context.payload.comment.user.login;
164164
165-
github.reactions.createForIssueComment({
165+
github.rest.reactions.createForIssueComment({
166166
owner,
167167
repo,
168168
comment_id,
169169
content: 'eyes'
170170
});
171171
172-
const { data: run } = await github.actions.getWorkflowRun({
172+
const { data: run } = await github.rest.actions.getWorkflowRun({
173173
owner,
174174
repo,
175175
run_id: process.env.GITHUB_RUN_ID,
@@ -179,7 +179,7 @@ jobs:
179179
`@${requestor} deploy action failed, please see `+
180180
`[the workflow run details](${run.html_url}) for more information.`;
181181
182-
await github.issues.createComment({
182+
await github.rest.issues.createComment({
183183
owner,
184184
repo,
185185
issue_number: process.env.GITHUB_PR,

0 commit comments

Comments
 (0)