forked from academicpages/academicpages.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request academicpages#2717 from dimitra-maoutsa/master
Update for scrapping talk location through github actions
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters