Skip to content

Update for scrapping talk location through github actions #2717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/ workflows /scrape_talks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Scrape Talk Locations

on:
push:
paths:
- 'talks/**'
- 'talkmap.ipynb'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # Specify the Python version you need

- name: Install dependencies
run: |
pip install jupyter pandas requests beautifulsoup4 geopy # Add other dependencies as needed
pip install getorg --upgrade

- name: Run Jupyter Notebook
run: |
jupyter nbconvert --to notebook --execute talkmap.ipynb --output talkmap_out.ipynb

- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Automated update of talk locations" || echo "No changes to commit"
git push
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ breadcrumbs : false # true, false (default)
words_per_minute : 160
future : true
read_more : "disabled" # if enabled, adds "Read more" links to excerpts
talkmap_link : false #change to true to add link to talkmap on talks page
talkmap_link : false #change to true to add link to talkmap on talks page
comments:
provider : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "custom"
disqus:
Expand Down