Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
To stop server cold boots
  • Loading branch information
igts-moksha authored Nov 9, 2024
1 parent 033d293 commit d8c735d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Scheduled GET Request

on:
schedule:
# This cron expression runs the workflow every 5 minutes
- cron: '*/5 * * * *'
workflow_dispatch: # Allows manual trigger of the workflow
jobs:
get-api-request:
runs-on: ubuntu-latest
steps:
# Step to make the GET request
- name: Make GET API Request and Log Response
run: |
response=$(curl -s -X GET https://igts-back.onrender.com/api/blog/getallblogs/0)
echo "Response: $response"

0 comments on commit d8c735d

Please sign in to comment.