FN Page Data #2429
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: FN Page Data | |
on: | |
schedule: | |
- cron: '0 * * * *' # Runs every hour | |
permissions: write-all | |
jobs: | |
open_web_browser: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install Selenium | |
run: | | |
pip install selenium | |
- name: Run script | |
run: | | |
python page.py | |
- name: Commit and push | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git pull | |
git add page/timestamp.json page/context_*.json | |
git commit -m "Update page files" | |
git push |