Help us shape the future of Go! Take the 2026 Go Developer Survey

upgrader

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upgrader

type Upgrader struct {
	// contains filtered or unexported fields
}

Upgrader manages the upgrade process for GitHub Actions in workflow files.

func New

func New(ctx context.Context, workflowsDir string) (*Upgrader, error)

New creates a new Upgrader for the specified workflows directory.

func NewWithClient

func NewWithClient(workflows []*workflow.Workflow, configFile string, client actions.Resolver) *Upgrader

NewWithClient creates a new Upgrader with a custom actions client (for testing).

func NewWithWorkflows

func NewWithWorkflows(ctx context.Context, workflows []*workflow.Workflow, configFile string) *Upgrader

NewWithWorkflows creates a new Upgrader with the provided workflows.

func (*Upgrader) DryRun

func (u *Upgrader) DryRun() error

DryRun shows what would be updated without modifying files.

func (*Upgrader) GetCacheStats

func (u *Upgrader) GetCacheStats() actions.CacheStats

GetCacheStats returns cache statistics for GitHub API calls.

func (*Upgrader) Upgrade

func (u *Upgrader) Upgrade() error

Upgrade upgrades GitHub Actions in all workflows to their latest versions.

Jump to

Keyboard shortcuts

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