File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const getFilesWithExtension = (path, ext) => {
2828}
2929const findKeyInObject = ( obj , key ) => {
3030 for ( const [ k , v ] of Object . entries ( obj ) ) {
31- if ( k === key ) {
31+ if ( k . match ( key ) ) {
3232 return v ;
3333 } else if ( typeof v === 'object' ) {
3434 const deeper = findKeyInObject ( v , key ) ;
@@ -104,7 +104,7 @@ const latestCommitDate = async (branch) => {
104104 const data = fs . readFileSync ( path , "utf8" ) ;
105105 try {
106106 const yamlData = yaml . parse ( data ) ;
107- const versionInfo = findKeyInObject ( yamlData , "cacophony.pkg_installed_from_github " ) ;
107+ const versionInfo = findKeyInObject ( yamlData , "cacophony.pkg_installed_from_* " ) ;
108108 const name = versionInfo . find ( item => item . hasOwnProperty ( "name" ) ) . name ;
109109 const version = versionInfo . find ( item => item . hasOwnProperty ( "version" ) ) . version ;
110110 versionData [ branch ] [ model ] [ name ] = version ;
You can’t perform that action at this time.
0 commit comments