Skip to content

update-webpage-everyday #364

update-webpage-everyday

update-webpage-everyday #364

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