@iobroker/repochecker 5.17.8 → 5.17.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/lib/M3000_Testing.js +29 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,9 +25,10 @@ Example:
|
|
|
25
25
|
Placeholder for the next version (at the beginning of the line):
|
|
26
26
|
### **WORK IN PROGRESS**
|
|
27
27
|
-->
|
|
28
|
-
### 5.17.
|
|
28
|
+
### 5.17.9 (2026-06-04)
|
|
29
29
|
|
|
30
30
|
- (mcm1957) Require release-script 5.2.1.
|
|
31
|
+
- (mcm1957) Searching for release tag workflow has been fixed.
|
|
31
32
|
|
|
32
33
|
### 5.17.6 (2026-06-03)
|
|
33
34
|
|
package/lib/M3000_Testing.js
CHANGED
|
@@ -600,12 +600,35 @@ async function checkTests(context) {
|
|
|
600
600
|
|
|
601
601
|
// --- check runs ---
|
|
602
602
|
try {
|
|
603
|
-
|
|
604
|
-
//const url = `${context.githubUrlApi}/actions/workflows/${WORKFLOW_FILE_SHORT}/runs?per_page=100&branch=${encodeURIComponent(defaultBranch)}`;
|
|
605
|
-
const url = `${context.githubUrlApi}/actions/workflows/${WORKFLOW_FILE_SHORT}/runs?per_page=100}`;
|
|
606
|
-
common.debug(`Retrieving list of workflow runs from url ${url}`);
|
|
607
|
-
const workflowRunsResponse = await axios(url);
|
|
608
|
-
const workflowRuns = workflowRunsResponse.data && workflowRunsResponse.data.workflow_runs;
|
|
603
|
+
|
|
604
|
+
// //const url = `${context.githubUrlApi}/actions/workflows/${WORKFLOW_FILE_SHORT}/runs?per_page=100&branch=${encodeURIComponent(defaultBranch)}`;
|
|
605
|
+
// const url = `${context.githubUrlApi}/actions/workflows/${WORKFLOW_FILE_SHORT}/runs?per_page=100}`;
|
|
606
|
+
// common.debug(`Retrieving list of workflow runs from url ${url}`);
|
|
607
|
+
// const workflowRunsResponse = await axios(url);
|
|
608
|
+
// const workflowRuns = workflowRunsResponse.data && workflowRunsResponse.data.workflow_runs;
|
|
609
|
+
|
|
610
|
+
const workflowRuns = [];
|
|
611
|
+
let page = 1;
|
|
612
|
+
let hasMore = true;
|
|
613
|
+
|
|
614
|
+
while (hasMore) {
|
|
615
|
+
const url = `${context.githubUrlApi}/actions/workflows/${WORKFLOW_FILE_SHORT}/runs?per_page=100&page=${page}`;
|
|
616
|
+
common.debug(`Retrieving list of workflow runs from url ${url} (page ${page})`);
|
|
617
|
+
|
|
618
|
+
const workflowRunsResponse = await axios(url);
|
|
619
|
+
const runs = workflowRunsResponse.data?.workflow_runs ?? [];
|
|
620
|
+
|
|
621
|
+
workflowRuns.push(...runs);
|
|
622
|
+
|
|
623
|
+
// If we got less than 100, we've reached the last page
|
|
624
|
+
hasMore = runs.length === 100;
|
|
625
|
+
page++;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
common.debug(`Retrieved ${workflowRuns.length} total workflow runs`);
|
|
629
|
+
|
|
630
|
+
const defaultBranch = context.branch || 'main';
|
|
631
|
+
|
|
609
632
|
if (!Array.isArray(workflowRuns) || workflowRuns.length === 0) {
|
|
610
633
|
const workflowUrl = `${context.githubUrlOriginal}/actions/workflows/${WORKFLOW_FILE_SHORT}`;
|
|
611
634
|
context.warnings.push(
|
package/package.json
CHANGED