sync file generator

This commit is contained in:
eyedeekay
2025-05-09 22:15:44 -04:00
parent beda655c5c
commit 50200abc0c
8 changed files with 330 additions and 7 deletions

View File

@ -8,8 +8,8 @@ import (
"gopkg.in/yaml.v3"
"github.com/go-i2p/go-gh-mirror/pkg/config"
"github.com/go-i2p/go-gh-mirror/pkg/logger"
"github.com/go-i2p/go-github-sync/pkg/config"
"github.com/go-i2p/go-github-sync/pkg/logger"
)
// Generator generates GitHub Actions workflow files.
@ -187,7 +187,7 @@ git push origin {{.MirrorBranch}}`
// addComments adds explanatory comments to the YAML.
func addComments(yaml string) string {
header := `# GitHub Actions workflow file to sync an external repository to this GitHub mirror.
# This file was automatically generated by go-gh-mirror.
# This file was automatically generated by go-github-sync.
#
# The workflow does the following:
# - Runs on a scheduled basis (and can also be triggered manually)