File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,18 @@ jobs:
16
16
const repoStatus = await github.request('GET https://raw.githubusercontent.com/LMS-Community/lms-server-repository/refs/heads/master/servers.json');
17
17
18
18
if (repoStatus.status !== 200) {
19
+ console.error("Fetching repo file failed?" + JSON.stringify(repoStatus, null, 2));
19
20
return false;
20
21
}
21
22
22
23
// get the oldest timestamp for each version from previous builds
23
24
const candidates = [];
24
- Object.keys(repoStatus.data).forEach(version => {
25
+ const repoData = JSON.parse(repoStatus.data);
26
+
27
+ Object.keys(repoData).forEach(version => {
25
28
const matches = version.match(/(\d+\.\d+)\.\d+/);
26
29
if (matches && matches.length == 2) {
27
- const versionBuilds = repoStatus.data [version];
30
+ const versionBuilds = repoData [version];
28
31
candidates.push({
29
32
v: matches[1],
30
33
r: Object.keys(versionBuilds).reduce((accumulator, build) => {
35
38
})
36
39
}
37
40
else {
38
- delete repoStatus.data [version];
41
+ delete repoData [version];
39
42
}
40
43
});
41
44
You can’t perform that action at this time.
0 commit comments