Skip to content

Daily Increment

Daily Increment #6

Workflow file for this run

name: Daily Increment
on:
schedule:
# - cron: "0 9 * * *"
- cron: "*/5 * * * *"
jobs:
call-endpoint:
runs-on: ubuntu-latest
steps:
- name: Make HTTP request
run: |
response=$(curl -s -o response.txt -w "%{http_code}" -X POST "https://ohno-server.fly.dev/increment" \
-H "Content-Type: application/json")
cat response.txt
if [ "$response" -ne 200 ]; then
echo "Request failed with status code $response"
exit 1
fi