From caec0f8b4c7d86b9adfe2f2603075be478555ca7 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 20 Oct 2021 15:35:13 +0000 Subject: [PATCH] Build/Test Tools: Adjustments as a follow up to [51921]. This adjusts the syntax for using the `github-scripts` action. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51922 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/slack-notifications.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/slack-notifications.yml b/.github/workflows/slack-notifications.yml index 7611f72255..6bb5c1f6d3 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -32,7 +32,7 @@ jobs: uses: actions/github-script@441359b1a30438de65712c2fbca0abe4816fa667 # v5.0.0 with: script: | - const workflow_run = await github.actions.getWorkflowRun({ + const workflow_run = await github.rest.actions.getWorkflowRun({ owner: '${{ github.repository_owner }}', repo: 'wordpress-develop', run_id: ${{ github.run_id }}, @@ -44,7 +44,7 @@ jobs: uses: actions/github-script@441359b1a30438de65712c2fbca0abe4816fa667 # v5.0.0 with: script: | - const workflow_run = await github.actions.getWorkflowRun({ + const workflow_run = await github.rest.actions.getWorkflowRun({ owner: '${{ github.repository_owner }}', repo: 'wordpress-develop', run_id: ${{ github.run_id }}, @@ -56,7 +56,7 @@ jobs: uses: actions/github-script@441359b1a30438de65712c2fbca0abe4816fa667 # v5.0.0 with: script: | - const previous_runs = await github.actions.listWorkflowRuns({ + const previous_runs = await github.rest.actions.listWorkflowRuns({ owner: '${{ github.repository_owner }}', repo: 'wordpress-develop', workflow_id: ${{ steps.current-workflow-id.outputs.result }},