8000 Merge pull request #200 from MaksimZhukov/update-github-script-version · akv-platform/python-versions@16feed7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 16feed7

Browse files
Merge pull request actions#200 from MaksimZhukov/update-github-script-version
Update github-script action version
2 parents 4cb1787 + fe8bc01 commit 16feed7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/python-builder.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
0