Skip to content

Commit 4b944b1

Browse files
Create scrape_talks.yml
1 parent 46dc8b4 commit 4b944b1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/ workflows /scrape_talks.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Scrape Talk Locations
2+
3+
on:
4+
push:
5+
paths:
6+
- 'talks/**'
7+
- 'talkmap.ipynb'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.9' # Specify the Python version you need
20+
21+
- name: Install dependencies
22+
run: |
23+
pip install jupyter pandas requests beautifulsoup4 geopy # Add other dependencies as needed
24+
pip install getorg --upgrade
25+
26+
- name: Run Jupyter Notebook
27+
run: |
28+
jupyter nbconvert --to notebook --execute talkmap.ipynb --output talkmap_out.ipynb
29+
30+
- name: Commit changes
31+
run: |
32+
git config user.name "github-actions[bot]"
33+
git config user.email "github-actions[bot]@users.noreply.github.com"
34+
git add .
35+
git commit -m "Automated update of talk locations" || echo "No changes to commit"
36+
git push

0 commit comments

Comments
 (0)