diff --git a/lib/updaters/index.js b/lib/updaters/index.js index 683381f94..47296e3d1 100644 --- a/lib/updaters/index.js +++ b/lib/updaters/index.js @@ -35,12 +35,12 @@ function getUpdaterByFilename(filename) { if (filename.endsWith('.csproj')) { return getUpdaterByType('csproj'); } - if (/\.ya?ml$/.test(filename)) { - return getUpdaterByType('yaml'); - } if (/openapi.yaml/.test(filename)) { return getUpdaterByType('openapi'); } + if (/\.ya?ml$/.test(filename)) { + return getUpdaterByType('yaml'); + } throw Error( `Unsupported file (${filename}) provided for bumping.\n Please specify the updater \`type\` or use a custom \`updater\`.`, );