Skip to content

Daily Data Capture Call #2

Daily Data Capture Call

Daily Data Capture Call #2

name: Daily Data Capture Call
on:
workflow_dispatch:
schedule:
- cron: "20 21 * * *"
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/DataCapture?date=${{ env.date }}"