https://github.com/waterlemons2k/scheduled-workflow-activity-action
With this GitHub Action, scheduled workflow won't be disabled even if there's no recent activity in the repository.
https://github.com/waterlemons2k/scheduled-workflow-activity-action
actions automation cron cronjob github github-action github-actions schedule trigger workflow workflows
Last synced: 12 days ago
JSON representation
With this GitHub Action, scheduled workflow won't be disabled even if there's no recent activity in the repository.
- Host: GitHub
- URL: https://github.com/waterlemons2k/scheduled-workflow-activity-action
- Owner: WaterLemons2k
- License: mit
- Created: 2023-04-16T07:02:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T08:42:45.000Z (6 months ago)
- Last Synced: 2025-07-04T00:03:23.650Z (12 days ago)
- Topics: actions, automation, cron, cronjob, github, github-action, github-actions, schedule, trigger, workflow, workflows
- Language: Shell
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Keep scheduled workflow activity
With this GitHub Action, scheduled workflow won't be disabled even if there's no recent activity in the repository.
English | [简体中文](README.zh-CN.md)
## Why
In GitHub, scheduled workflows are automatically disabled when no repository activity has occurred in 60 days.
When approaching 60 days, it will show:
> This workflow will be disabled soon because there's no recent activity in the repository.

After 60 days, it will show:
> This scheduled workflow is disabled because there hasn't been activity in this repository for at least 60 days.

## Usage
### GitHub Action
```yml
name: Keep scheduled workflow activityon:
schedule:
- cron: '0 0 * * *' # 00:00 UTC every dayjobs:
keep-scheduled-workflow-activity:
runs-on: ubuntu-latest
steps:
- name: Keep scheduled workflow activity
uses: WaterLemons2k/scheduled-workflow-activity-action@v1
```### Reusable workflow
```yml
name: Keep scheduled workflow activityon:
schedule:
- cron: '0 0 * * *' # 00:00 UTC every dayjobs:
keep-scheduled-workflow-activity:
uses: WaterLemons2k/scheduled-workflow-activity-action/.github/workflows/reusable.yml@v1
```## Inputs
All inputs are optional.
| Input | Description | Default |
| ----------- | -------------------------------- | --------------------- |
| `token` | Access token for the GitHub API. | `${{ github.token }}` |
| `workflows` | Workflows to keep activity. | The workflow |