Skip to content

Commit

Permalink
Merge pull request #14 from selfagency/dev
Browse files Browse the repository at this point in the history
that oughtta do it
  • Loading branch information
selfagency authored Mar 17, 2022
2 parents a1f9259 + 38b62a1 commit 344722b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/feedbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: NYT
uses: 'selfagency/feedbot@main'
uses: 'selfagency/feedbot@dev'
with:
rss: 'https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
interval: 5
unfurl: true
- name: LAT
uses: 'selfagency/feedbot@main'
uses: 'selfagency/feedbot@dev'
with:
rss: 'https://www.latimes.com/rss2.0.xml'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
interval: 5
unfurl: false
- name: WaPo
uses: 'selfagency/feedbot@main'
uses: 'selfagency/feedbot@dev'
with:
rss: 'https://feeds.washingtonpost.com/rss/homepage'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
Expand Down
2 changes: 1 addition & 1 deletion action.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const validate = () => {
throw new Error('No Slack webhook or invalid webhook specified');
}

if (!getInput('interval') || parseInt(getInput('interval')).toString() !== 'NaN') {
if (!getInput('interval') || parseInt(getInput('interval')).toString() === 'NaN') {
throw new Error('No interval or invalid interval specified');
}
};
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14541,7 +14541,7 @@ const validate = () => {
throw new Error('No Slack webhook or invalid webhook specified');
}

if (!getInput('interval') || parseInt(getInput('interval')).toString() !== 'NaN') {
if (!getInput('interval') || parseInt(getInput('interval')).toString() === 'NaN') {
throw new Error('No interval or invalid interval specified');
}
};
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "feedbot",
"version": "1.0.19",
"version": "1.0.20",
"license": "MIT",
"author": "Daniel Sieradski <[email protected]>",
"type": "module",
Expand Down

0 comments on commit 344722b

Please sign in to comment.