{"id":27873290,"url":"https://github.com/wpbonelli/schedule-outage","last_synced_at":"2026-01-22T13:48:54.784Z","repository":{"id":201193512,"uuid":"707158645","full_name":"wpbonelli/schedule-outage","owner":"wpbonelli","description":"Disable an action or workflow randomly or periodically","archived":false,"fork":false,"pushed_at":"2023-10-23T23:52:40.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T01:09:02.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpbonelli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-19T10:42:19.000Z","updated_at":"2023-10-23T23:06:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"d925b0f1-3988-4fae-9775-4b525cb898d7","html_url":"https://github.com/wpbonelli/schedule-outage","commit_stats":null,"previous_names":["wpbonelli/schedule-outage"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/wpbonelli/schedule-outage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpbonelli%2Fschedule-outage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpbonelli%2Fschedule-outage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpbonelli%2Fschedule-outage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpbonelli%2Fschedule-outage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpbonelli","download_url":"https://codeload.github.com/wpbonelli/schedule-outage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpbonelli%2Fschedule-outage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28664028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-05T01:09:01.263Z","updated_at":"2026-01-22T13:48:54.766Z","avatar_url":"https://github.com/wpbonelli.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# schedule-outage\n\n[![Test](https://github.com/wpbonelli/schedule-outage/actions/workflows/test.yml/badge.svg)](https://github.com/wpbonelli/schedule-outage/actions/workflows/test.yml)\n[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)\n[![GitHub tag](https://img.shields.io/github/tag/wpbonelli/schedule-outage.svg)](https://github.com/wpbonelli/schedule-outage/tags/latest)\n\nDisable an action or workflow randomly or periodically.\n\nUseful e.g. to signal deprecation, or (if your action calls a service you control) for maintenance windows.\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\n- [Usage](#usage)\n- [Inputs](#inputs)\n- [Notes](#notes)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Usage\n\n```yml\n# warn that an action will be archived and suggest migration\n- uses: wpbonelli/schedule-outage@v1\n  with:\n    probability: 0.1\n    message: 'this/action retires soon, use something/else@v1'\n\n# disable actions clients during a weekly maintenance window\n# note: no guarantees that your service will not be invoked!\n# somebody could just fork your action and remove this step.\n- uses: wpbonelli/schedule-outage@v1\n  with:\n    schedule: '0 0 * * 0'\n    duration: 1\n    message: 'Down for maintenance, back in 1 hour'\n```\n\n## Inputs\n\n| Name | Description | Required | Default |\n| --- | --- | --- | --- |\n| `schedule` | Cron expression for periodic outages | No | - |\n| `duration` | Duration of scheduled outage (hours) | No | 1 (if `schedule` provided) |\n| `probability` | Probability of outage | No | - |\n| `message` | Message to display | No | 'Action or workflow disabled' |\n\n## Notes\n\n* either `schedule` or `probability` must be provided\n\n* if `probability` is provided without `schedule`, the outage occurs probabilistically at every run\n\n* `schedule` and `probability` can be used together \u0026mdash; if both are provided, an outage occurs probabilistically at the scheduled times\n\n* if `duration` is provided without `schedule`, it will be ignored\n\n* if `schedule` is provided, [`croniter`](https://github.com/kiorky/croniter) is used to parse the cron expression \u0026mdash; if pip install fails, the action aborts without failing the workflow","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpbonelli%2Fschedule-outage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpbonelli%2Fschedule-outage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpbonelli%2Fschedule-outage/lists"}