File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32762,7 +32762,8 @@ async function main () {
3276232762 });
3276332763
3276432764 const result = await checker.check(options);
32765- core.info(`Scanned total of ${result.links.length} links!`);
32765+ const nonSkippedLinks = result.links.filter(x => x.state !== 'SKIPPED');
32766+ core.info(`Scanned total of ${nonSkippedLinks.length} links!`);
3276632767 if (!result.passed) {
3276732768 const brokenLinks = result.links.filter(x => x.state === 'BROKEN');
3276832769 let failureOutput = `Detected ${brokenLinks.length} broken links.`;
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ async function main () {
3636 } ) ;
3737
3838 const result = await checker . check ( options ) ;
39- core . info ( `Scanned total of ${ result . links . length } links!` ) ;
39+ const nonSkippedLinks = result . links . filter ( x => x . state !== 'SKIPPED' ) ;
40+ core . info ( `Scanned total of ${ nonSkippedLinks . length } links!` ) ;
4041 if ( ! result . passed ) {
4142 const brokenLinks = result . links . filter ( x => x . state === 'BROKEN' ) ;
4243 let failureOutput = `Detected ${ brokenLinks . length } broken links.` ;
You can’t perform that action at this time.
0 commit comments