gosemanticrelease

package
v1.32.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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

func (c Config) AllRequiredSteps() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL