File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,16 @@ const run = async () => {
7272 const rssFeedUrl = new URL ( rssFeed ) ;
7373 const slackWebhook = getInput ( 'slack_webhook' ) ;
7474 const interval = parseInt ( getInput ( 'interval' ) ) ;
75- const unfurl = getBooleanInput ( 'unfurl' ) ;
7675 const cacheDir = getInput ( 'cache_dir' ) ;
7776 const cachePath = `${ cacheDir } /${ rssFeedUrl . hostname . replace ( / \. / g, '_' ) } .json` ;
7877
78+ let unfurl = false ;
79+ try {
80+ unfurl = getBooleanInput ( 'unfurl' ) ;
81+ } catch ( err ) {
82+ debug ( err ) ;
83+ }
84+
7985 debug ( `Retrieving ${ rssFeed } ` ) ;
8086 const rss = await parse ( rssFeed ) ;
8187 // debug(rss);
Original file line number Diff line number Diff line change @@ -23545,10 +23545,16 @@ const run = async () => {
2354523545 const rssFeedUrl = new URL(rssFeed);
2354623546 const slackWebhook = getInput('slack_webhook');
2354723547 const interval = parseInt(getInput('interval'));
23548- const unfurl = getBooleanInput('unfurl');
2354923548 const cacheDir = getInput('cache_dir');
2355023549 const cachePath = `${cacheDir}/${rssFeedUrl.hostname.replace(/\./g, '_')}.json`;
2355123550
23551+ let unfurl = false;
23552+ try {
23553+ unfurl = getBooleanInput('unfurl');
23554+ } catch (err) {
23555+ debug(err);
23556+ }
23557+
2355223558 debug(`Retrieving ${rssFeed}`);
2355323559 const rss = await (0,rss_to_json_dist.parse)(rssFeed);
2355423560 // debug(rss);
You can’t perform that action at this time.
0 commit comments