You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
core.info(`Search found ${totalCount} matching items`);
42
-
43
-
if(totalCount>=maxMatches){
44
-
core.warning(`🔍 Skip condition matched (${totalCount} items found, threshold: ${maxMatches}). Workflow execution will be prevented by activation job.`);
45
-
core.setOutput("skip_check_ok","false");
46
-
awaitwriteDenialSummary(`Skip-if-match query matched: ${totalCount} item(s) found (threshold: ${maxMatches}).`,"Update `on.skip-if-match:` in the workflow frontmatter if this skip was unexpected.");
47
-
return;
48
-
}
49
-
50
-
core.info(`✓ Found ${totalCount} matches (below threshold of ${maxMatches}), workflow can proceed`);
51
-
core.setOutput("skip_check_ok","true");
52
-
}catch(error){
53
-
core.setFailed(`${ERR_API}: Failed to execute search query: ${getErrorMessage(error)}`);
core.info(`Search found ${totalCount} matching items`);
42
-
43
-
if(totalCount<minMatches){
44
-
core.warning(`🔍 Skip condition matched (${totalCount} items found, minimum required: ${minMatches}). Workflow execution will be prevented by activation job.`);
45
-
core.setOutput("skip_no_match_check_ok","false");
46
-
awaitwriteDenialSummary(`Skip-if-no-match query returned too few results: ${totalCount} item(s) found (minimum required: ${minMatches}).`,"Update `on.skip-if-no-match:` in the workflow frontmatter if this skip was unexpected.");
47
-
return;
48
-
}
49
-
50
-
core.info(`✓ Found ${totalCount} matches (meets or exceeds minimum of ${minMatches}), workflow can proceed`);
51
-
core.setOutput("skip_no_match_check_ok","true");
52
-
}catch(error){
53
-
core.setFailed(`${ERR_API}: Failed to execute search query: ${getErrorMessage(error)}`);
warningMessage: (totalCount,threshold)=>`🔍 Skip condition matched (${totalCount} items found, minimum required: ${threshold}). Workflow execution will be prevented by activation job.`,
20
+
successMessage: (totalCount,threshold)=>`✓ Found ${totalCount} matches (meets or exceeds minimum of ${threshold}), workflow can proceed`,
21
+
denialSummaryMessage: (totalCount,threshold)=>`Skip-if-no-match query returned too few results: ${totalCount} item(s) found (minimum required: ${threshold}).`,
22
+
denialSummaryNextStep: "Update `on.skip-if-no-match:` in the workflow frontmatter if this skip was unexpected.",
0 commit comments