Wake Up Streamlit Apps #205
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: Wake Up Streamlit Apps | |
on: | |
schedule: | |
- cron: '0 8-20/2 * * *' # Runs every 2 hours from 8 AM to 8 PM | |
workflow_dispatch: # Allows manual triggering | |
jobs: | |
wake-up: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
pip install selenium | |
- name: Run Python script to wake up Streamlit apps | |
run: python wake_up_streamlit.py | |
- name: Upload log file as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wakeup-log | |
path: wakeup_log.txt |