Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 15 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T16:22:41.000Z (16 days ago)
- Last Synced: 2025-01-25T16:27:40.584Z (16 days ago)
- Topics: actions, automation, cron, cronjob, github, github-action, github-actions, schedule, trigger, workflow, workflows
- Language: Shell
- Homepage:
- Size: 41 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.
![disabled-soon](img/disabled-soon.png)
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.
![disabled](img/disabled.png)
## 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 |