Skip to content

Daily Data Capture Call #134

Daily Data Capture Call

Daily Data Capture Call #134

name: Daily Data Capture Call
on:
workflow_dispatch:
schedule:
- cron: "10 2 * * *"
jobs:
call-api:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "date=$(date -u +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Call API with date parameter
run: |
echo "Calling API with date: ${{ env.date }}"
curl -X POST "https://ufvmenudataprocessor.azurewebsites.net/api/get-ufv-menu?date=${{ env.date }}"