Skip to content

Commit

Permalink
fix: raise the 'openapi'-updater to a higher order of precedence abov…
Browse files Browse the repository at this point in the history
…e the 'yaml'-updater (#143)
  • Loading branch information
ixuz authored Apr 28, 2024
1 parent 0ea57da commit 37fe178
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/updaters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\`.`,
);
Expand Down

0 comments on commit 37fe178

Please sign in to comment.