34
34
WORKFLOW_ID : ${{github.event.workflow_run.id}}
35
35
36
36
- name : Add comment on PR
37
- uses : actions/github-script@v5
37
+ uses : actions/github-script@v7
38
38
with :
39
39
script : |
40
40
const fs = require('fs');
58
58
cmd : ${{ steps.parse-cmd.outputs.cmd }}
59
59
pullRequestJSON : ${{ steps.parse-cmd.outputs.pullRequestJSON }}
60
60
steps :
61
- - uses : actions/github-script@v5
61
+ - uses : actions/github-script@v7
62
62
with :
63
63
script : |
64
64
github.rest.reactions.createForIssueComment({
68
68
});
69
69
70
70
- id : parse-cmd
71
- uses : actions/github-script@v5
71
+ uses : actions/github-script@v7
72
72
with :
73
73
script : |
74
74
const comment = context.payload.comment.body;
@@ -102,12 +102,12 @@ jobs:
102
102
if : needs.accept-cmd.result != 'skipped' && always()
103
103
runs-on : ubuntu-latest
104
104
steps :
105
- - uses : actions/download-artifact@v2
105
+ - uses : actions/download-artifact@v4
106
106
with :
107
107
name : replyMessage
108
108
109
109
- if : failure()
110
- uses : actions/github-script@v5
110
+ uses : actions/github-script@v7
111
111
with :
112
112
script : |
113
113
const fs = require('fs');
@@ -131,7 +131,7 @@ jobs:
131
131
RUN_URL : ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}
132
132
133
133
- if : always()
134
- uses : actions/github-script@v5
134
+ uses : actions/github-script@v7
135
135
with :
136
136
script : |
137
137
const fs = require('fs');
0 commit comments