Skip to content

Commit 3ec9ca2

Browse files
authored
Create daily-traction.yml
Signed-off-by: nellins <drewnellins@gmail.com>
1 parent 9dec7e9 commit 3ec9ca2

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)