Skip to content

Commit 37fe178

Browse files
authored
fix: raise the 'openapi'-updater to a higher order of precedence above the 'yaml'-updater (#143)
1 parent 0ea57da commit 37fe178

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/updaters/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ function getUpdaterByFilename(filename) {
3535
if (filename.endsWith('.csproj')) {
3636
return getUpdaterByType('csproj');
3737
}
38-
if (/\.ya?ml$/.test(filename)) {
39-
return getUpdaterByType('yaml');
40-
}
4138
if (/openapi.yaml/.test(filename)) {
4239
return getUpdaterByType('openapi');
4340
}
41+
if (/\.ya?ml$/.test(filename)) {
42+
return getUpdaterByType('yaml');
43+
}
4444
throw Error(
4545
`Unsupported file (${filename}) provided for bumping.\n Please specify the updater \`type\` or use a custom \`updater\`.`,
4646
);

0 commit comments

Comments
 (0)