From 054969553603475ab848de6c3c30999cbd417c86 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 1 Oct 2021 09:53:28 +0200 Subject: [PATCH] [workflows] Update actions/github-script action to v5 (#1222) * [workflows] Update actions/github-script action to v5 Co-authored-by: Renovate Bot --- .github/workflows/metadata-label-pr-ci-status.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/metadata-label-pr-ci-status.yaml b/.github/workflows/metadata-label-pr-ci-status.yaml index 8ef6bf42..c3c6ea24 100644 --- a/.github/workflows/metadata-label-pr-ci-status.yaml +++ b/.github/workflows/metadata-label-pr-ci-status.yaml @@ -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,