Skip to content

Commit

Permalink
Create keep_awake.yml
Browse files Browse the repository at this point in the history
#1: Python requests for artificial traffic
  • Loading branch information
swooshoo authored Jan 7, 2025
1 parent 804f2d6 commit a34163e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/keep_awake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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)
"

0 comments on commit a34163e

Please sign in to comment.