Call API Every 5 Minutes #6412
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: Call API Every 5 Minutes | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: "*/5 * * * *" | |
jobs: | |
call-api: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Call API | |
run: | | |
response=$(curl -s -X GET https://script-search-appartement-seloger.vercel.app/api/checkNewApartment ) | |
echo "API Response: $response" |