From e6a5dd7d8ce01e0fa34aa68e821988502a765470 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 31 Jan 2022 13:03:16 -0500 Subject: [PATCH] Remove .rest. from github-script (#24832) Pair-debugged with @rsese --- .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 650f329a22..52c382a675 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.rest.actions.getWorkflowRun({ + const { data: run } = await github.actions.getWorkflowRun({ owner, repo, run_id: BUILD_ACTIONS_RUN_ID,