workflows: upgrade actions/github-script to v6

master
Christian Clauss 2022-03-22 02:05:25 +01:00 committed by GitHub
parent 7f31619117
commit 1d406953b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ jobs:
steps:
- name: Prepare runner matrix
id: runner-matrix
uses: actions/github-script@v5
uses: actions/github-script@v6
with:
script: |
return context.payload.inputs.runner.split(",")

View File

@ -55,11 +55,11 @@ jobs:
steps:
- name: Check for CI labels
id: check-labels
uses: actions/github-script@v3
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: { labels: labels } } = await github.pulls.get({
const { data: { labels: labels } } = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number