Scheduled GET Request #3357
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: 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" |