Skip to content

Commit

Permalink
Github workflow - version
Browse files Browse the repository at this point in the history
string fix
  • Loading branch information
microtechno9000 committed Nov 9, 2024
1 parent 42eb497 commit 209173b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,9 @@ jobs:
// Prepare the message based on the title flag
let prBody;
if (titleFlag === "false") {
prBody = `Version Bot:`
+ `**PR title:** ${prTitle}`
+ `**No valid version flag found**. PR title must include either [FEATURE] or [BUGFIX] to auto-increment the version.'
+ `**Please update the PR title** and re-run the workflow.`;
prBody = `Version Bot\n **PR title:** ${prTitle}\n **No valid version flag found**. PR title must include either [FEATURE] or [BUGFIX] to auto-increment the version.\n **Please update the PR title** and re-run the workflow.`;
} else {
prBody = `Version Bot:`
+ `**PR title:** ${prTitle}`
+ `Updated version: **${currentVersion}** to **${newVersion}**`
+ `Release version: **${versionType}**`;
prBody = `Version Bot:\n **PR title:** ${prTitle}\n Updated version: **${currentVersion}** to **${newVersion}**\n `Release version: **${versionType}**`;
}
// Generate PR comment
Expand Down

0 comments on commit 209173b

Please sign in to comment.