Documentation ¶
Index ¶
Constants ¶
View Source
const Name = config.Name("gosemanticrelease")
Variables ¶
View Source
var Module = templatefiles.NewModule(templatefiles.NewModuleConfig[Config]{ Name: Name, Files: map[string]string{ "_go_": templateStr, "_gh_": templateStr, }, Priority: buildgo.RunPriority + 1, PostGenProcessor: templatefiles.PostGenProcessorList{ &templatemutator.PostGenConfigMutator[buildgo.Config]{ ToMutate: buildgo.Name, TemplateName: "_go_", PostGenMutatorFunc: func(_ context.Context, renderedTemplate string, cfg buildgo.Config) (buildgo.Config, error) { cfg.Jobs = append(cfg.Jobs, renderedTemplate) return cfg, nil }, }, &templatemutator.PostGenConfigMutator[buildaction.Config]{ ToMutate: buildaction.Name, TemplateName: "_gh_", PostGenMutatorFunc: func(_ context.Context, renderedTemplate string, cfg buildaction.Config) (buildaction.Config, error) { cfg.Jobs = append(cfg.Jobs, renderedTemplate) return cfg, nil }, }, }, })
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RequiredSteps []string `yaml:"required_steps"` GithubRunner string `yaml:"github_runner"` ActionsCheckoutVersion string `yaml:"actions_checkout_version"` GithubAppTokenAction string `yaml:"github_app_token_action"` GoSemanticReleaseActionVersion string `yaml:"go_semantic_release_action_version"` }
func (Config) AllRequiredSteps ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.