Skip to content

Commit

Permalink
fix cache and most html issues (#27)
Browse files Browse the repository at this point in the history
* derp

Signed-off-by: Daniel Sieradski <[email protected]>

* update docs

Signed-off-by: Daniel Sieradski <[email protected]>

* tweaks

Signed-off-by: Daniel Sieradski <[email protected]>

* text instead

Signed-off-by: Daniel Sieradski <[email protected]>

* different html to markdown converter

Signed-off-by: Daniel Sieradski <[email protected]>

* update docs, test run

Signed-off-by: Daniel Sieradski <[email protected]>

* try another md converter

Signed-off-by: Daniel Sieradski <[email protected]>

* add jsdom

Signed-off-by: Daniel Sieradski <[email protected]>

* try again

Signed-off-by: Daniel Sieradski <[email protected]>

* wtf

Signed-off-by: Daniel Sieradski <[email protected]>

* i’m so dumb

Signed-off-by: Daniel Sieradski <[email protected]>

* try and fail miserably at parcel

Signed-off-by: Daniel Sieradski <[email protected]>

* parcel babel

Signed-off-by: Daniel Sieradski <[email protected]>

* babel parcel again

Signed-off-by: Daniel Sieradski <[email protected]>

* move to typescript

Signed-off-by: Daniel Sieradski <[email protected]>

* esbuild saves the day!

Signed-off-by: Daniel Sieradski <[email protected]>

* update action

Signed-off-by: Daniel Sieradski <[email protected]>

* erps

Signed-off-by: Daniel Sieradski <[email protected]>

* again

Signed-off-by: Daniel Sieradski <[email protected]>

* maybe?

Signed-off-by: Daniel Sieradski <[email protected]>

* cache bust

Signed-off-by: Daniel Sieradski <[email protected]>

* fix html

Signed-off-by: Daniel Sieradski <[email protected]>

* strip tags

Signed-off-by: Daniel Sieradski <[email protected]>

* and again

Signed-off-by: Daniel Sieradski <[email protected]>

* try this

Signed-off-by: Daniel Sieradski <[email protected]>

* tweak payload

Signed-off-by: Daniel Sieradski <[email protected]>

* aaand again

Signed-off-by: Daniel Sieradski <[email protected]>

* ffs

Signed-off-by: Daniel Sieradski <[email protected]>

* sigh

Signed-off-by: Daniel Sieradski <[email protected]>

* derp

Signed-off-by: Daniel Sieradski <[email protected]>

* try hash again

Signed-off-by: Daniel Sieradski <[email protected]>

* derps

Signed-off-by: Daniel Sieradski <[email protected]>

* 1.2.6
  • Loading branch information
selfagency authored Mar 18, 2022
1 parent 4a16dc8 commit 95ee5bd
Show file tree
Hide file tree
Showing 26 changed files with 32,183 additions and 27,438 deletions.
3 changes: 0 additions & 3 deletions .babelrc.cjs

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tsconfig.json
node_modules
dist
yarn.lock
Expand Down
30 changes: 30 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"root": true,
"extends": [
"standard",
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:json/recommended",
"plugin:markdown/recommended",
"plugin:yml/recommended",
"plugin:yml/prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"overrides": [
{
"files": [
"*.yml"
],
"rules": {
"camelcase": "off",
"no-labels": "off",
"no-unused-labels": "off",
"no-unused-expressions": "off"
}
}
]
}
22 changes: 0 additions & 22 deletions .eslintrc.cjs

This file was deleted.

18 changes: 16 additions & 2 deletions .github/workflows/feedbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,22 @@ jobs:
uses: actions/cache@v2
with:
path: ./slackfeedbot-cache
key: feed-cache-${{ steps.generate-key.outputs.cache-key }}
restore-keys: feed-cache-
key: feed-cache-e-${{ steps.generate-key.outputs.cache-key }}
restore-keys: feed-cache-e-
- name: LAT
uses: 'selfagency/slackfeedbot@dev'
with:
rss: 'https://www.latimes.com/rss2.0.xml'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
cache_dir: './slackfeedbot-cache'
continue-on-error: true
- name: WaPo
uses: 'selfagency/slackfeedbot@dev'
with:
rss: 'https://feeds.washingtonpost.com/rss/homepage'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
cache_dir: './slackfeedbot-cache'
continue-on-error: true
- name: GitHub
uses: 'selfagency/slackfeedbot@dev'
with:
Expand Down
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/ncc build action.js --license licenses.txt
npm run bundle
git add dist
./node_modules/.bin/lint-staged --allow-empty
npm run lint-staged
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"arrowParens": "avoid",
"requirePragma": false,
"insertPragma": false,
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
key: feed-cache-${{ steps.generate-key.outputs.cache-key }}
restore-keys: feed-cache-
- name: NYT
uses: 'selfagency/feedbot@v1.2.4'
uses: 'selfagency/slackfeedbot@v1.2.6'
with:
rss: 'https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
Expand All @@ -75,7 +75,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: NYT
uses: 'selfagency/feedbot@v1.2.4'
uses: 'selfagency/slackfeedbot@v1.2.6'
with:
rss: 'https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
key: feed-cache-${{ steps.generate-key.outputs.cache-key }}
restore-keys: feed-cache-
- name: NYT
uses: 'selfagency/feedbot@v1.2.4'
uses: 'selfagency/slackfeedbot@v1.2.6'
with:
rss: 'https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
Expand Down Expand Up @@ -138,13 +138,13 @@ jobs:
key: feed-cache-${{ steps.generate-key.outputs.cache-key }}
restore-keys: feed-cache-
- name: LAT
uses: 'selfagency/feedbot@v1.2.4'
uses: 'selfagency/slackfeedbot@v1.2.6'
with:
rss: 'https://www.latimes.com/rss2.0.xml'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
cache_dir: './slackfeedbot-cache'
- name: WaPo
uses: 'selfagency/feedbot@v1.2.4'
uses: 'selfagency/slackfeedbot@v1.2.6'
with:
rss: 'https://feeds.washingtonpost.com/rss/homepage'
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
Expand Down
197 changes: 0 additions & 197 deletions action.js

This file was deleted.

2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ inputs:
required: false
runs:
using: 'node16'
main: 'dist/index.js'
main: 'dist/index.cjs'
Loading

0 comments on commit 95ee5bd

Please sign in to comment.