This repository was archived by the owner on Mar 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ jobs:
154154 name : Run Tests
155155 command : |
156156 export MONGO_URI="mongodb://mongodb:27017/testdb"
157- yarn workspace @1kv/telemetry test:int
157+ yarn build && yarn workspace @1kv/telemetry test:int
158158
159159 helmLint :
160160 docker :
Original file line number Diff line number Diff line change @@ -106,7 +106,10 @@ export const checkLatestClientVersion = async (
106106 `No latest release found, fetching from GitHub` ,
107107 constraintsLabel ,
108108 ) ;
109- latestRelease = await getLatestTaggedRelease ( ) ;
109+ // fetch from github and set in the db
110+ await getLatestTaggedRelease ( ) ;
111+ // get the record from the db
112+ latestRelease = await getLatestRelease ( ) ;
110113 logger . info (
111114 `Latest release fetched from GitHub: ${ latestRelease } ` ,
112115 constraintsLabel ,
Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ export default class Monitor {
3939 const { tag_name, published_at } = latestRelease . data ;
4040 const publishedAt = new Date ( published_at ) . getTime ( ) ;
4141
42- await queries . setRelease ( tag_name , publishedAt ) ;
43-
4442 const tagParts = tag_name . split ( "-" ) ;
4543 const version = tagParts [ tagParts . length - 1 ] ;
4644
45+ await queries . setRelease ( version , publishedAt ) ;
46+
4747 if (
4848 this . latestTaggedRelease &&
4949 version === this . latestTaggedRelease ! . name
You can’t perform that action at this time.
0 commit comments