From bbdef6ae98a5c88a64eaa29b3081b3851c45142b Mon Sep 17 00:00:00 2001 From: coleramos425 Date: Tue, 1 Oct 2024 15:57:21 +0000 Subject: [PATCH] Fix typo in workflow Signed-off-by: coleramos425 --- .github/workflows/changelog.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 9b80447ab..fd44b12da 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -25,26 +25,26 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} body: | - The changelog has been updated based on the commit history. Please review the changes below: - ``` - $(cat CHANGES.tmp) - ``` - If you approve, please comment with "APPROVE CHANGELOG". + The changelog has been updated based on the commit history. Please review the changes below: + ``` + $(cat CHANGES.tmp) + ``` + If you approve, please comment with "APPROVE CHANGELOG". - name: Await approval uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const prNumber = context.issue.number; - const { data: comments } = await github.issues.listComments({ - ...context.repo, - issue_number: prNumber, - }); - const approved = comments.some(comment => comment.body.includes('APPROVE CHANGELOG')); - if (!approved) { - throw new Error('Changelog update not approved'); - } + const prNumber = context.issue.number; + const { data: comments } = await github.issues.listComments({ + ...context.repo, + issue_number: prNumber, + }); + const approved = comments.some(comment => comment.body.includes('APPROVE CHANGELOG')); + if (!approved) { + throw new Error('Changelog update not approved'); + } - name: Commit and push changelog if: success()