Skip to content

Commit 72984aa

Browse files
committed
fix unfurl
Signed-off-by: Daniel Sieradski <[email protected]>
1 parent 10afc67 commit 72984aa

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

action.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

dist/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)