diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 0bf95ad77..ba1694835 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -36,7 +36,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: - const changelog = require('fs').readFileSync('CHANGELOG.md').split('\n'); + 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');