@@ -182,15 +182,15 @@ jobs:
182
182
Python ${{ env.VERSION }}
183
183
184
184
- name : Upload release assets
185
- uses : actions/github-script@v3
185
+ uses : actions/github-script@v6
186
186
with :
187
187
github-token : ${{ secrets.GITHUB_TOKEN }}
188
188
script : |
189
189
const fs = require('fs');
190
190
for (let artifactDir of fs.readdirSync('.')) {
191
191
let artifactName = fs.readdirSync(`${artifactDir}`)[0];
192
192
console.log(`Upload ${artifactName} asset`);
193
- github.repos.uploadReleaseAsset({
193
+ github.rest. repos.uploadReleaseAsset({
194
194
owner: context.repo.owner,
195
195
repo: context.repo.repo,
196
196
release_id: ${{ steps.create_release.outputs.id }},
@@ -205,11 +205,11 @@ jobs:
205
205
runs-on : ubuntu-latest
206
206
steps :
207
207
- name : Trigger "Create Pull Request" workflow
208
- uses : actions/github-script@v3
208
+ uses : actions/github-script@v6
209
209
with :
210
210
github-token : ${{ secrets.PERSONAL_TOKEN }}
211
211
script : |
212
- github.actions.createWorkflowDispatch({
212
+ github.rest. actions.createWorkflowDispatch({
213
213
owner: context.repo.owner,
214
214
repo: context.repo.repo,
215
215
workflow_id: 'create-pr.yml',
0 commit comments