From 9bbb775c65f78014d1da67570b6698c8f6bc7a1a Mon Sep 17 00:00:00 2001 From: The many faced demon <154847721+themanyfaceddemon@users.noreply.github.com> Date: Thu, 27 Jun 2024 09:50:40 +0300 Subject: [PATCH] Update auto-cl-update-atd.yml --- .github/workflows/auto-cl-update-atd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-cl-update-atd.yml b/.github/workflows/auto-cl-update-atd.yml index cb3f10eb329..34f4ff446c5 100644 --- a/.github/workflows/auto-cl-update-atd.yml +++ b/.github/workflows/auto-cl-update-atd.yml @@ -67,16 +67,16 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const { data: pullRequests } = await github.pulls.list({ + const { data: pullRequests } = await github.rest.pulls.list({ owner: context.repo.owner, repo: context.repo.repo, state: 'open', head: `${context.repo.owner}:update-changelog` }); - core.setOutput('pr_exists', pullRequests.length > 0 ? 'true' : 'false'); + return pullRequests.length > 0; - name: Create Pull Request - if: steps.commit-changes.outcome == 'success' && steps.pr-check.outputs.pr_exists == 'false' + if: steps.commit-changes.outcome == 'success' && steps.pr-check.outputs.result == 'false' uses: peter-evans/create-pull-request@v4 with: token: ${{ secrets.GITHUB_TOKEN }}