Skip to content

Commit 4e2d8aa

Browse files
committed
do not delete all releases
1 parent a85bb11 commit 4e2d8aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async function run(): Promise<void> {
8585
}
8686
}
8787

88-
if (delete_tags_prefix !== null) {
88+
if (delete_tags_prefix !== null && delete_tags_prefix !== "") {
8989
// see https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repository-tags
9090
const {data: tags} = await octokit.rest.repos.listTags({
9191
owner,

0 commit comments

Comments
 (0)