How do I modify this API call to get the list of runs for the last 30 days?
Endpoint:
https://api.github.com/repos/[OWNER]/[REPO]/actions/runs
I tried:
https://github.infra.cloudera.com/api/v3/repos/[OWNER]/[REPO]/actions/runs?created=datetime.today() - timedelta(days=30)
and it didn't work.
With gh cli search for failed actions from the last 30 days and list the ids:
Check the output with:
Refine fields and conditions for purpose.