mirror on push

This commit is contained in:
eyedeekay
2025-05-09 23:01:47 -04:00
parent 376471cd3a
commit b30b4f158c
2 changed files with 10 additions and 0 deletions

View File

@ -81,6 +81,9 @@ func generateWorkflowYAML(data WorkflowTemplate) (string, error) {
workflow := map[string]interface{}{
"name": "Sync Primary Repository to GitHub Mirror",
"on": map[string]interface{}{
"push": map[string]interface{}{
"branches": []string{data.MirrorBranch},
},
"schedule": []map[string]string{
{"cron": data.CronSchedule},
},