@iobroker/repochecker 5.17.7 → 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 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.7 (2026-06-04)
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
 
@@ -73,7 +73,7 @@ function checkTagTriggeredRun(context, workflowRuns, version, taggedVersion, cod
73
73
  const tagRun = findTagTriggeredRun(workflowRuns, version, taggedVersion);
74
74
  if (!tagRun) {
75
75
  context.warnings.push(
76
- `[W${codeBase}] Just for Info: No workflow run for "${WORKFLOW_FILE_SHORT}" triggered by tag "${taggedVersion}" was found for ${sourceLabel}. ` +
76
+ `[W${codeBase}] No workflow run for "${WORKFLOW_FILE_SHORT}" triggered by tag "${taggedVersion}" was found for ${sourceLabel}. ` +
77
77
  `Workflow logs might be deleted already.`,
78
78
  );
79
79
  return;
@@ -600,12 +600,35 @@ async function checkTests(context) {
600
600
 
601
601
  // --- check runs ---
602
602
  try {
603
- const defaultBranch = context.branch || 'main';
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.17.7",
2
+ "version": "5.17.9",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "ajv": "^8.20.0",