Developer & DevOps
Schedule GitHub repository checks and execute periodic maintenance tasks
16 nodes
317
158
Automatic trigger
Workflow Description
Automated routine that monitors GitHub repositories and executes scheduled operations on them. Retrieves repository data, processes it in batches, and applies actions based on defined conditions. Ideal for DevOps teams needing consistent maintenance workflows without manual intervention.
How it works
- 1.Trigger the automation at scheduled intervals using Cron
- 2.Fetch repository and branch data from GitHub API
- 3.Divide retrieved data into manageable batches for efficient processing
- 4.Evaluate conditional logic to route each batch to appropriate actions
- 5.Execute the required operation on GitHub repositories
Use cases
- Automatically clean up inactive branches based on age or naming patterns
- Send periodic status reports about repository health and detected issues
- Update repository labels, environment variables, or documentation automatically
- Run scheduled tests or builds across selected repositories on a fixed timetable
Requirements
- GitHub personal access token with sufficient permissions for repository access and modifications
- Configured schedule parameters (hourly, daily, weekly, custom cron expression)
- Defined conditional logic and target operations to apply during each execution cycle
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
GitHub
Schedule
Split In Batches
Details
Trigger
Automatic trigger
Nodes
16
Apps
3
Views
317
Downloads
158
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (16)
/
On clicking 'execute'
Manual Trigger
dataArray
Function
N8N Workflows
HTTP Request
GitHub
Github
Merge
Merge
N8N Workflow Detail
HTTP Request
github_status
Switch
same
No Op
different
No Op
new
No Op
GitHub Edit
Github
GitHub Create
Github
isDiffOrNew
Function
Daily @ 20:00
Cron
OneAtATime
Split In Batches
Globals
Set