-
-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (30 loc) · 896 Bytes
/
flat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: data
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch: {}
push:
paths:
- .github/workflows/flat.yml
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://api.raindrop.io/rest/v1/raindrops/17535508
downloaded_filename: src/_data/raindrop/accounts.json
authorization: Bearer ${{ secrets.RAINDROP_TOKEN }}
- name: Fetch data
uses: githubocto/flat@v3
with:
http_url: https://api.raindrop.io/rest/v1/raindrops/22341884
downloaded_filename: src/_data/raindrop/reading_list.json
authorization: Bearer ${{ secrets.RAINDROP_TOKEN }}