-
Notifications
You must be signed in to change notification settings - Fork 41
/
reddit.yml
28 lines (28 loc) · 905 Bytes
/
reddit.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
name: Check for New Reddit Posts and Add to Orbit
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# subreddit:
# - javascript
# - vue
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- run: npx @orbit-love/reddit --posts --comments --hours=1 --subreddit "${{ matrix.subreddit }}"
name: 'Get Posts & Add to Orbit'
env:
REDDIT_CLIENT_ID: ${{ secrets.REDDIT_CLIENT_ID}}
REDDIT_CLIENT_SECRET: ${{ secrets.REDDIT_CLIENT_SECRET}}
REDDIT_USERNAME: ${{ secrets.REDDIT_USERNAME}}
REDDIT_PASSWORD: ${{ secrets.REDDIT_PASSWORD}}
ORBIT_API_KEY: ${{ secrets.ORBIT_API_KEY}}
ORBIT_WORKSPACE_ID: ${{ secrets.ORBIT_WORKSPACE_ID}}