File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44152,14 +44152,15 @@ const { LinkChecker } = __webpack_require__(356);
4415244152async function main () {
4415344153 try {
4415444154 const options = {
44155- path: core.getInput ('paths'),
44155+ path: qq ('paths', '*.md '),
4415644156 concurrency: core.getInput('concurrency'),
4415744157 recurse: core.getInput('recurse'),
4415844158 linksToSkip: core.getInput('skip'),
4415944159 timeout: core.getInput('timeout'),
44160- markdown: typeof core.getInput ('markdown') === 'undefined' ? true : core.getInput('markdown' ),
44160+ markdown: qq ('markdown', true),
4416144161 serverRoot: core.getInput('serverRoot')
4416244162 };
44163+ console.log(options);
4416344164
4416444165 const checker = new LinkChecker()
4416544166 .on('pagestart', url => {
@@ -44182,6 +44183,12 @@ async function main () {
4418244183 }
4418344184}
4418444185
44186+ function qq (propName, defaultValue) {
44187+ return typeof core.getInput(propName) === 'undefined'
44188+ ? defaultValue
44189+ : core.getInput(propName);
44190+ }
44191+
4418544192if (require.main === require.cache[eval('__filename')]) {
4418644193 main();
4418744194} else {
Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ const { LinkChecker } = require('linkinator');
44async function main ( ) {
55 try {
66 const options = {
7- path : core . getInput ( 'paths' ) ,
7+ path : qq ( 'paths' , '*.md ') ,
88 concurrency : core . getInput ( 'concurrency' ) ,
99 recurse : core . getInput ( 'recurse' ) ,
1010 linksToSkip : core . getInput ( 'skip' ) ,
1111 timeout : core . getInput ( 'timeout' ) ,
12- markdown : typeof core . getInput ( 'markdown' ) === 'undefined' ? true : core . getInput ( 'markdown' ) ,
12+ markdown : qq ( 'markdown' , true ) ,
1313 serverRoot : core . getInput ( 'serverRoot' )
1414 } ;
15+ console . log ( options ) ;
1516
1617 const checker = new LinkChecker ( )
1718 . on ( 'pagestart' , url => {
@@ -34,6 +35,12 @@ async function main () {
3435 }
3536}
3637
38+ function qq ( propName , defaultValue ) {
39+ return typeof core . getInput ( propName ) === 'undefined'
40+ ? defaultValue
41+ : core . getInput ( propName ) ;
42+ }
43+
3744if ( require . main === module ) {
3845 main ( ) ;
3946} else {
You can’t perform that action at this time.
0 commit comments