Skip to content

Commit

Permalink
Update auto-cl-update-atd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
themanyfaceddemon authored Jun 27, 2024
1 parent c633c86 commit 9bbb775
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto-cl-update-atd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9bbb775

Please sign in to comment.