Skip to content

Commit bbbb03e

Browse files
Simplify release workflow (#2679)
With #2678, the release draft can be created in one request, rather than generating the notes and then manually editing them.
1 parent f160c6e commit bbbb03e

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

.github/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ changelog:
22
exclude:
33
authors:
44
- dependabot[bot]
5+
- github-actions[bot]
56
- polly-updater-bot[bot]

.github/workflows/release.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,30 +45,14 @@ jobs:
4545
version = version.slice(1);
4646
}
4747
48-
const tag_name = version;
49-
const name = tag_name;
50-
51-
const { data: notes } = await github.rest.repos.generateReleaseNotes({
52-
owner,
53-
repo,
54-
tag_name,
55-
target_commitish: process.env.DEFAULT_BRANCH,
56-
});
57-
58-
const body = notes.body
59-
.split('\n')
60-
.filter((line) => !line.includes(' @dependabot '))
61-
.filter((line) => !line.includes(' @github-actions '))
62-
.filter((line) => !line.includes(' @polly-updater-bot '))
63-
.join('\n');
64-
6548
const { data: release } = await github.rest.repos.createRelease({
6649
owner,
6750
repo,
68-
tag_name,
69-
name,
70-
body,
51+
tag_name: version,
52+
target_commitish: process.env.DEFAULT_BRANCH,
53+
name: version,
7154
draft,
55+
generate_release_notes: true,
7256
});
7357
7458
core.notice(`Created release ${release.name}: ${release.html_url}`);

0 commit comments

Comments
 (0)