Merge pull request #3350 from stevehipwell/fix-gh-action-workflow-approve

Fixed bad syntax in GH action workflow approval
This commit is contained in:
Kubernetes Prow Robot 2023-01-31 23:57:06 -08:00 committed by GitHub
commit ebf35f337d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,11 +18,12 @@ jobs:
steps:
- name: Update PR
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
debug: ${{ secrets.ACTIONS_RUNNER_DEBUG }}
script: |
const workflowRuns = await octokit.rest.actions.listWorkflowRunsForRepo({
const workflowRuns = await github.rest.actions.listWorkflowRunsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
event: "pull_request",