Skip to content

Commit

Permalink
Fix typo in workflow
Browse files Browse the repository at this point in the history
Signed-off-by: coleramos425 <[email protected]>
  • Loading branch information
coleramos425 committed Oct 1, 2024
1 parent 0d5052d commit bbdef6a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bbdef6a

Please sign in to comment.