-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 1.02 KB
/
cron.yaml
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
31
32
33
34
35
36
name: Cron
on:
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:
jobs:
discover-hn-mentions:
name: Discover-Social-Mentions
runs-on: ubuntu-latest
env:
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
REDDIT_CLIENT_ID: ${{ secrets.REDDIT_CLIENT_ID }}
REDDIT_CLIENT_SECRET: ${{ secrets.REDDIT_CLIENT_SECRET }}
REDDIT_USER_AGENT: ${{ secrets.REDDIT_USER_AGENT }}
REDDIT_USERNAME: ${{ secrets.REDDIT_USERNAME }}
REDDIT_PASSWORD: ${{ secrets.REDDIT_PASSWORD }}
TWITTER_BEARER_TOKEN: ${{ secrets.TWITTER_BEARER_TOKEN }}
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Install Node v16
uses: actions/[email protected]
with:
node-version: '16'
- name: Housekeeping
run: yarn && yarn bootstrap
- name: Run the script
run: yarn lerna run --stream --scope @socialsnitch/cron prod