build: fix changelog generation
This commit is contained in:
parent
215eba92ba
commit
92eed05b4e
3 changed files with 5 additions and 2 deletions
|
@ -167,6 +167,9 @@ jobs:
|
|||
fetch-depth: 0 # Important for changelog
|
||||
filter: blob:none # We don't need all blobs
|
||||
|
||||
# required for proper changelogs
|
||||
- run: git checkout -b "release/${GITHUB_REF_NAME#v}"
|
||||
|
||||
- uses: ./.forgejo/actions/setup
|
||||
- uses: ./.forgejo/actions/setup-node
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@ const file = process.argv[3]
|
|||
? fs.createWriteStream(process.argv[3])
|
||||
: process.stdout;
|
||||
|
||||
getChangelog().pipe(file);
|
||||
getChangelog(process.argv[2], !!process.argv[2]).pipe(file);
|
||||
|
|
|
@ -68,7 +68,7 @@ class GiteaReleaseCommand extends Command {
|
|||
return 1;
|
||||
}
|
||||
|
||||
const stream = getChangelog(undefined, false).setEncoding('utf8');
|
||||
const stream = getChangelog(tag, true).setEncoding('utf8');
|
||||
const changes = (await stream.toArray()).join('');
|
||||
|
||||
this.context.stdout.write(`Creating release ${tag}.\n`);
|
||||
|
|
Loading…
Reference in a new issue