Skip to content

Commit

Permalink
Fix auto generate changelog workflow again pt 4
Browse files Browse the repository at this point in the history
  • Loading branch information
yell0wsuit committed Aug 11, 2024
1 parent d3c244e commit 67be67f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/offline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
});
const latestTag = tags.length > 0 ? tags[0].name : null;
const latestTagDate = latestTag ? new Date(latestTag.commit.committer.date) : null;
const { data: commits } = await github.rest.repos.listCommits({
owner: context.repo.owner,
Expand All @@ -88,7 +89,7 @@ jobs:
});
const changelog = commits
.filter(commit => !latestTag || new Date(commit.commit.author.date) > new Date(tags[0].commit.committer.date))
.filter(commit => latestTagDate ? new Date(commit.commit.author.date) > latestTagDate : true)
.map(commit => `- ${commit.commit.message}`)
.join("\n");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docugrammar",
"version": "3.1.7",
"version": "3.1.8",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand Down

0 comments on commit 67be67f

Please sign in to comment.