Skip to content

Commit 425325b

Browse files
authored
Update version_bump.yml
1 parent a6af640 commit 425325b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/version_bump.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ jobs:
112112
> _Update the PR title and re-run the workflow._
113113
`;
114114
} else {
115+
let warning = "";
116+
if (currentVersion !== newVersion) {
117+
warning = "> ⚠️ **Warning:** The required version (`" + newVersion + "`) does not match the current version (`" + currentVersion + "`) inside your VERSION file.\n" +
118+
"> This PR will not be merged unless you bump the version number.\n";
119+
}
115120
prBody = `
116121
### ✅ ARM Version Bot
117122
@@ -121,17 +126,12 @@ jobs:
121126
| :-------------: | :--------------: | :---------------: | :----------: |
122127
| \`${currentVersion}\` | \`${newVersion}\` | \`${branchVersion}\` | \`${versionType}\` |
123128
124-
${
125-
currentVersion !== newVersion
126-
? "> ⚠️ **Warning:** The required version (`newVersion`) does not match the current version (`currentVersion`) inside your VERSION file.
127-
This PR will not be merged unless you bump the version number.\n"
128-
: ""
129-
}
129+
${warning}
130130
---
131131
_This comment was generated automatically by the ARM Version Bot._
132132
`;
133133
}
134-
134+
135135
// Get existing comments
136136
const { data: comments } = await github.rest.issues.listComments({
137137
owner: context.repo.owner,

0 commit comments

Comments
 (0)