Developer & DevOps

Schedule GitHub repository checks and execute periodic maintenance tasks

16 nodes 317 158 Automatic trigger
Download

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. 1.Trigger the automation at scheduled intervals using Cron
  2. 2.Fetch repository and branch data from GitHub API
  3. 3.Divide retrieved data into manageable batches for efficient processing
  4. 4.Evaluate conditional logic to route each batch to appropriate actions
  5. 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. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (16)

/

On clicking 'execute'

Manual Trigger

#1

dataArray

Function

#2

N8N Workflows

HTTP Request

#3

GitHub

Github

#4

Merge

Merge

#5

N8N Workflow Detail

HTTP Request

#6

github_status

Switch

#7

same

No Op

#8

different

No Op

#9

new

No Op

#10

GitHub Edit

Github

#11

GitHub Create

Github

#12

isDiffOrNew

Function

#13

Daily @ 20:00

Cron

#14

OneAtATime

Split In Batches

#15

Globals

Set

#16