Skip to content

Commit 1426b8d

Browse files
authored
Update version_bump.yml
1 parent 530bedd commit 1426b8d

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/version_bump.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
// Prepare the message based on the title flag
101101
let prBody;
102102
if (titleFlag === "false") {
103-
prBody = `
103+
prBody = `
104104
### 🚨 ARM Version Bot
105105
106106
**PR Title:** \`${prTitle}\`
@@ -110,9 +110,9 @@ jobs:
110110
> Please include either \`[FEATURE]\` or \`[BUGFIX]\` in your PR title to trigger auto-increment.
111111
>
112112
> _Update the PR title and re-run the workflow._
113-
`;
113+
`;
114114
} else {
115-
prBody = `
115+
prBody = `
116116
### ✅ ARM Version Bot
117117
118118
**PR Title:** \`${prTitle}\`
@@ -121,9 +121,14 @@ jobs:
121121
| :-------------: | :--------------: | :---------------: | :----------: |
122122
| \`${currentVersion}\` | \`${newVersion}\` | \`${branchVersion}\` | \`${versionType}\` |
123123
124+
${
125+
currentVersion !== newVersion
126+
? "> ⚠️ **Warning:** The required version (`newVersion`) does not match the current version (`currentVersion`). This PR will trigger a version update.\n"
127+
: ""
128+
}
124129
---
125130
_This comment was generated automatically by the ARM Version Bot._
126-
`;
131+
`;
127132
}
128133
129134
// Get existing comments

0 commit comments

Comments
 (0)