Skip to content

Commit

Permalink
Merge branch 'ka.externalApiVersioning' into tim/test-version-bump-1
Browse files Browse the repository at this point in the history
  • Loading branch information
timolegros committed Oct 18, 2024
2 parents 617cdce + 66ce1ad commit 72ccd98
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ async function validateExternalApiVersioning() {
// Use the local version only if it is greater than the npm version.
// If local version > npm version that means CI already bumped versions
// after a push to a PR to be merged into production branch
const newVersion = compareSemVersions(newOas.info.version, process.argv[3])
const newVersion = compareSemVersions(newOas.info.version, process.argv[2])
? parseSemVer(newOas.info.version)
: parseSemVer(process.argv[3]);
: parseSemVer(process.argv[2]);

if (oldVersion.major < newVersion.major) {
if (newVersion.minor !== 0 || newVersion.patch !== 0) {
Expand Down

0 comments on commit 72ccd98

Please sign in to comment.