ci: add on-release workflow to trigger docs-release, update bug-report-template and update security-policy (#3881)

This commit is contained in:
Meier Lukas
2025-08-20 20:37:22 +02:00
committed by GitHub
parent 1451c3c41e
commit 6fb32a6061
5 changed files with 105 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
import { readFile, writeFile } from "fs/promises";
const replaceTemplate = "#NEXT_VERSION#";
const fileName = ".github/ISSUE_TEMPLATE/bug_report.yml";
const env = {
NEXT_VERSION: process.env.NEXT_VERSION as string,
};
const content = await readFile(fileName, "utf8");
const updatedContent = content.replace(
replaceTemplate,
`${replaceTemplate}\n - ${env.NEXT_VERSION.replace("v", "")}`,
);
await writeFile(fileName, updatedContent, "utf8");