@@ -182,15 +182,15 @@ jobs:
182182 Python ${{ env.VERSION }}
183183
184184 - name : Upload release assets
185- uses : actions/github-script@v3
185+ uses : actions/github-script@v6
186186 with :
187187 github-token : ${{ secrets.GITHUB_TOKEN }}
188188 script : |
189189 const fs = require('fs');
190190 for (let artifactDir of fs.readdirSync('.')) {
191191 let artifactName = fs.readdirSync(`${artifactDir}`)[0];
192192 console.log(`Upload ${artifactName} asset`);
193- github.repos.uploadReleaseAsset({
193+ github.rest. repos.uploadReleaseAsset({
194194 owner: context.repo.owner,
195195 repo: context.repo.repo,
196196 release_id: ${{ steps.create_release.outputs.id }},
@@ -205,11 +205,11 @@ jobs:
205205 runs-on : ubuntu-latest
206206 steps :
207207 - name : Trigger "Create Pull Request" workflow
208- uses : actions/github-script@v3
208+ uses : actions/github-script@v6
209209 with :
210210 github-token : ${{ secrets.PERSONAL_TOKEN }}
211211 script : |
212- github.actions.createWorkflowDispatch({
212+ github.rest. actions.createWorkflowDispatch({
213213 owner: context.repo.owner,
214214 repo: context.repo.repo,
215215 workflow_id: 'create-pr.yml',
0 commit comments