mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 08:37:03 +02:00
fix: Check if version has changed first
This commit is contained in:
parent
b4b335ca6e
commit
fe0b8338e0
3 changed files with 10 additions and 8 deletions
|
@ -110,13 +110,14 @@ function run() {
|
|||
return;
|
||||
}
|
||||
if (originalChartVersion) {
|
||||
if (updatedChartVersion == originalChartVersion) {
|
||||
core.setFailed(`Chart version has not been updated!`);
|
||||
return;
|
||||
}
|
||||
if (!semver.gt(updatedChartVersion, originalChartVersion)) {
|
||||
core.setFailed(`Updated chart version ${updatedChartVersion} is < ${originalChartVersion}!`);
|
||||
return;
|
||||
}
|
||||
if (updatedChartVersion == originalChartVersion) {
|
||||
core.setFailed(`Chart version has not been updated!`);
|
||||
}
|
||||
core.info(`Old chart version: ${originalChartVersion}`);
|
||||
}
|
||||
core.info(`New chart version: ${updatedChartVersion}`);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -80,6 +80,11 @@ async function run() {
|
|||
}
|
||||
|
||||
if (originalChartVersion) {
|
||||
if (updatedChartVersion == originalChartVersion) {
|
||||
core.setFailed(`Chart version has not been updated!`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!semver.gt(updatedChartVersion, originalChartVersion)) {
|
||||
core.setFailed(
|
||||
`Updated chart version ${updatedChartVersion} is < ${originalChartVersion}!`
|
||||
|
@ -87,10 +92,6 @@ async function run() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (updatedChartVersion == originalChartVersion) {
|
||||
core.setFailed(`Chart version has not been updated!`);
|
||||
}
|
||||
|
||||
core.info(`Old chart version: ${originalChartVersion}`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue