From d384b85e97f2b8e9ea1e261e179e6d3a90352ffc Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Fri, 28 Jan 2022 11:14:24 -0500 Subject: [PATCH] correct use of getWorkflowRun in actions/github-script v5 (#24786) --- .github/workflows/staging-deploy-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/staging-deploy-pr.yml b/.github/workflows/staging-deploy-pr.yml index 52c382a675..650f329a22 100644 --- a/.github/workflows/staging-deploy-pr.yml +++ b/.github/workflows/staging-deploy-pr.yml @@ -71,7 +71,7 @@ jobs: // the API for more info based on the originating workflow run const { BUILD_ACTIONS_RUN_ID } = process.env const { owner, repo } = context.repo - const { data: run } = await github.actions.getWorkflowRun({ + const { data: run } = await github.rest.actions.getWorkflowRun({ owner, repo, run_id: BUILD_ACTIONS_RUN_ID,