Skip to content

Commit

Permalink
flat scraper step added
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko committed Aug 13, 2021
1 parent abffba3 commit eb09748
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/flat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: data
on:
schedule:
- cron: 0 0 1 1 1
workflow_dispatch: {}
push:
paths:
- .github/workflows/flat.yml
- ./scripts/scraper-post-process.ts
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Setup deno
uses: denoland/setup-deno@main
with:
deno-version: v1.x
- name: Check out repo
uses: actions/checkout@v2
- name: Fetch data
uses: githubocto/flat@v3
with:
http_url: https://forum.obsidian.md/t/dataview-plugin-snippet-showcase/13673
downloaded_filename: dataview-plugin-snippet-showcase.html
postprocess: ./scripts/scraper-post-process.ts
16 changes: 15 additions & 1 deletion .github/workflows/scrape-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ jobs:
steps:
- uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SCRIPTHUB_ACCESS_TOKEN }}
with:
branch: 'scripts-updated'
- uses: denoland/setup-deno@main
with:
deno-version: v1.x
- name: Check out repo
uses: actions/checkout@v2
- name: Fetch data
uses: githubocto/flat@v3
with:
http_url: https://forum.obsidian.md/t/dataview-plugin-snippet-showcase/13673
downloaded_filename: dataview-plugin-snippet-showcase.html
postprocess: ./scripts/scraper-post-process.ts



Empty file added scripts/scraper-post-process.ts
Empty file.

0 comments on commit eb09748

Please sign in to comment.