FN Page Data #33132
This file contains hidden or 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/checkout@v4.1.7 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5.2.0 | |
| 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 "actions@github.com" | |
| 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 |