Keep App Awake #20
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: Keep App Awake | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Runs once a day at midnight UTC | |
jobs: | |
keep_awake: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send a request with Python | |
run: | | |
python -c " | |
import requests | |
url = 'https://divvyup.streamlit.app/' | |
try: | |
response = requests.get(url) | |
print('Status:', response.status_code) | |
except Exception as e: | |
print('Error:', e) | |
" |