chore(ci): optimize (#5501)

* chore(ci): optimize

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update
This commit is contained in:
YANG QIA
2024-10-23 23:36:10 +08:00
committed by GitHub
parent 4a6bf09737
commit 48f1827f94
4 changed files with 46 additions and 34 deletions
+7 -4
View File
@@ -381,7 +381,7 @@ async function getVersion() {
return { from, to };
}
async function postCMS(title, content, contentCN) {
async function postCMS(tag, content, contentCN) {
const { cmsToken, cmsURL } = program.opts();
if (!cmsToken || !cmsURL) {
console.error('No cmsToken or cmsURL provided');
@@ -394,13 +394,16 @@ async function postCMS(title, content, contentCN) {
Authorization: `Bearer ${cmsToken}`,
},
params: {
filterKeys: ['title'],
filterKeys: ['slug'],
},
data: {
title,
title_cn: title,
slug: tag,
title: `Nocobase ${tag}`,
title_cn: `Nocobase ${tag}`,
content,
content_cn: contentCN,
description: `Release Note of ${tag}`,
description_cn: `${tag} 更新日志`,
tags: [4],
status: 'drafted',
author: 'nocobase [bot]',