Schedule for GET requests #12536
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: Schedule for GET requests | |
on: | |
schedule: | |
# Run every 15 minutes between 08:00 and 22:00 +3 UTC mon-fri | |
- cron: '*/18 5-18 * * 1-5' | |
workflow_dispatch: | |
jobs: | |
keep-it-alive: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Keep WebApp alive | |
run: | | |
for i in {1..2} | |
do | |
echo "Execute first GET request" | |
response=$(curl -sS https://car-service-cuh7.onrender.com/) | |
# response=$(curl -sS https://freelance-services.onrender.com/) | |
echo "Wait 300 seconds" | |
sleep 300 | |
echo "GET Request operation was successful" | |
done | |