Skip to content

Commit 211b760

Browse files
authored
Create daily-traction.yml
Signed-off-by: nellins <drewnellins@gmail.com>
1 parent 39f811f commit 211b760

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Daily Traction Report
2+
on:
3+
schedule:
4+
- cron: '0 14 * * 1-5' # 9 AM EST weekdays
5+
workflow_dispatch: # Manual trigger for testing
6+
7+
jobs:
8+
generate-report:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.9'
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r scripts/requirements.txt
23+
24+
- name: Generate Daily Traction Report
25+
run: python scripts/daily_report.py
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
29+
REDDIT_CLIENT_ID: ${{ secrets.REDDIT_CLIENT_ID }}
30+
REDDIT_SECRET: ${{ secrets.REDDIT_SECRET }}
31+
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}

0 commit comments

Comments
 (0)