Skip to content

Commit 6546609

Browse files
Add Github Actions Workflow
1 parent c2807a6 commit 6546609

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/scrape_posts.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Scrape Latest Posts
2+
3+
on:
4+
schedule:
5+
- cron: "0 */2 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
- name: Set up Python 3.10
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.10'
18+
cache: "pip"
19+
- run: pip install -r requirements.txt
20+
- run: python main.py
21+
22+
23+

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,6 @@ pyrightconfig.json
173173

174174
mock_data/*
175175
google_news.py
176-
format.sh
176+
format.sh
177+
178+
*.mp3

0 commit comments

Comments
 (0)