update-webpage-everyday #313
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
name: update-webpage-everyday | |
on: | |
schedule: | |
- cron: '0 0 * * *' # run everyday 12 am | |
jobs: | |
update-webpage-and-commit-changes: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup-python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: install-dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install requests | |
python -m pip install beautifulsoup4 | |
python -m pip install selenium | |
- name: update-webpage | |
run: python update-webpage.py | |
- name: commit-changes | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "actions@github.com" | |
git add index.html | |
git commit -m "update index.html" | |
git push origin main |