chore: fix tag_version type

This commit is contained in:
DIYgod 2025-02-13 19:01:42 +08:00
parent ddd6a2c8cd
commit a3566ee548
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ jobs:
const semverRegex = /chore: Release (v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-.]+)?)/;
const match = commitMessage.match(semverRegex);
if (match) {
fs.appendFileSync(process.env.GITHUB_ENV, `tag_version=${match[1]}\n`);
fs.appendFileSync(process.env.GITHUB_ENV, `tag_version=true\n`);
} else {
console.log("No SemVer found in commit body.");
process.exit(0);