Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Exclude the line containing the version from the release body
Browse files Browse the repository at this point in the history
And fix an embarassing case of undefined variables
  • Loading branch information
illright committed Jan 22, 2021
1 parent bbb2212 commit 455495f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
const changelog = require('fs').readFileSync('CHANGELOG.md', { encoding: 'utf-8' }).split('\n');
const start = changelog.findIndex(line => line.startsWith('## '));
const end = changelog.findIndex((line, index) => line.startsWith('## ') && index > start);
return changelog.slice(startIndex, endIndex).join('\n');
return changelog.slice(start + 1, end).join('\n').trim();

- name: Create a release 🔖
uses: actions/create-release@v1
Expand Down

0 comments on commit 455495f

Please sign in to comment.