Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ changelog:
exclude:
authors:
- dependabot[bot]
- github-actions[bot]
- polly-updater-bot[bot]
23 changes: 4 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,30 +45,15 @@ jobs:
version = version.slice(1);
}

const tag_name = version;
const name = tag_name;

const { data: notes } = await github.rest.repos.generateReleaseNotes({
owner,
repo,
tag_name,
target_commitish: process.env.DEFAULT_BRANCH,
});

const body = notes.body
.split('\n')
.filter((line) => !line.includes(' @dependabot '))
.filter((line) => !line.includes(' @github-actions '))
.filter((line) => !line.includes(' @polly-updater-bot '))
.join('\n');

const { data: release } = await github.rest.repos.createRelease({
owner,
repo,
tag_name,
name,
tag_name: version,
target_commitish: process.env.DEFAULT_BRANCH,
name: tag_name,
body,
draft,
generate_release_notes: true,
});

core.notice(`Created release ${release.name}: ${release.html_url}`);
Loading