[workflows] Update actions/github-script action to v5 (#1222)

* [workflows] Update actions/github-script action to v5
Co-authored-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
renovate[bot] 2021-10-01 09:53:28 +02:00 committed by GitHub
parent 9b183fd674
commit 0549695536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,14 +65,14 @@ jobs:
sourceRunId: ${{ github.event.workflow_run.id }}
- name: "Get workflow job status"
uses: actions/github-script@v4
uses: actions/github-script@v5
id: get-workflow-jobs
with:
github-token: ${{ steps.get-app-token.outputs.token }}
script: |
let result = new Object
const wfJobs = await github.actions.listJobsForWorkflowRun({
const wfJobs = await github.rest.actions.listJobsForWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.payload.workflow_run.id,