$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "workflows": [
< {
< "owner_repo": "python/cpython",
< "workflow_file": "stale.yml",
< "expected_max_interval_minutes": 1440
< },
< {
< "owner_repo": "home-assistant/core",
< "workflow_file": "stale.yml",
< "expected_max_interval_minutes": 1440
< },
< {
< "owner_repo": "rust-lang/rust",
< "workflow_file": "ghcr.yml",
< "expected_max_interval_minutes": 2880
< }
< ],
< "failureStreakThreshold": 2,
< "alertWebhookUrl": "",
< "runEventFilter": "schedule",
< "runsPerWorkflow": 10,
< "suppressRepeatAlerts": true,
< "stateStoreName": "gha-schedule-monitor-state",
< "confirmSilence": true,
< "silenceConfirmDelaySeconds": 3,
< "timeoutSeconds": 15,
< "requestsPerSecond": 5,
< "maxResponseBytes": 2000000
<}
<EOF
$curl "https://api.apify.com/v2/actors/kingii98~scheduled-github-actions-workflow-silence-and-failure-report/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'