FN Page Data #4406
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: '*/10 * * * *' # Runs every 10 mins | |
permissions: write-all | |
jobs: | |
open_web_browser: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.12' | |
- 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 |