workflows: upgrade actions/github-script to v6
parent
7f31619117
commit
1d406953b0
|
@ -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(",")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue