With this GitHub Action, scheduled workflow won't be disabled even if there's no recent activity in the repository.
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.
name: Keep scheduled workflow activity
on:
schedule:
- cron: "0 0 * * *" # 00:00 UTC every day
jobs:
keep-scheduled-workflow-activity:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Keep scheduled workflow activity
uses: atomlong/Keep-Workflow-Activity-action@mastername: Keep scheduled workflow activity
on:
schedule:
- cron: "0 0 * * *" # 00:00 UTC every day
jobs:
keep-scheduled-workflow-activity:
uses: atomlong/Keep-Workflow-Activity-action/.github/workflows/reusable.yml@v1All inputs are optional.
| Input | Description | Default |
|---|---|---|
name |
Username used for commit. | github-actions[bot] |
email |
Email address used for commit. | 41898282+github-actions[bot]@users.noreply.github.com |
message |
Commit message for the repository. | chore: empty commit |
days |
Number of days between the latest commit and the new commit. | 50 |
| Input | Description |
|---|---|
activated |
If the current git repository is activated, then output true. |

