File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,19 @@ jobs:
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- name : Download diffs
20
- uses : actions/github-script@v3
20
+ uses : actions/github-script@v5
21
21
with :
22
22
script : |
23
23
const fs = require('fs');
24
- const artifacts = await github.actions.listWorkflowRunArtifacts({
24
+ const artifacts = await github.rest. actions.listWorkflowRunArtifacts({
25
25
owner: context.repo.owner,
26
26
repo: context.repo.repo,
27
27
run_id: ${{ github.event.workflow_run.id }},
28
28
});
29
29
const [matchArtifact] = artifacts.data.artifacts.filter((artifact) =>
30
30
artifact.name == "mypy_primer_diffs");
31
31
32
- const download = await github.actions.downloadArtifact({
32
+ const download = await github.rest. actions.downloadArtifact({
33
33
owner: context.repo.owner,
34
34
repo: context.repo.repo,
35
35
artifact_id: matchArtifact.id,
44
44
45
45
- name : Post comment
46
46
id : post-comment
47
- uses : actions/github-script@v3
47
+ uses : actions/github-script@v5
48
48
with :
49
49
github-token : ${{secrets.GITHUB_TOKEN}}
50
50
script : |
59
59
}
60
60
61
61
const prNumber = parseInt(fs.readFileSync("pr_number.txt", { encoding: "utf8" }))
62
- await github.issues.createComment({
62
+ await github.rest. issues.createComment({
63
63
issue_number: prNumber,
64
64
owner: context.repo.owner,
65
65
repo: context.repo.repo,
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ jobs:
68
68
permissions :
69
69
issues : write
70
70
steps :
71
- - uses : actions/github-script@v3
71
+ - uses : actions/github-script@v5
72
72
with :
73
- github-token : ${{secrets.GITHUB_TOKEN}}
73
+ github-token : ${{ secrets.GITHUB_TOKEN }}
74
74
script : |
75
- await github.issues.create({
75
+ await github.rest. issues.create({
76
76
owner: "python",
77
77
repo: "typeshed",
78
78
title: `Stubtest failed on ${new Date().toDateString()}`,
You can’t perform that action at this time.
0 commit comments