sync file generator
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user