github

package
v0.0.0-...-da1d575 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLatestRelease

func GetLatestRelease(token string, actionName string, currentVersion string) (string, error)

GetLatestRelease searches for the latest release of a GitHub action. The actionName should be in the format "org/repo/optional_subpath".

func GetLatestReleaseWithSHA

func GetLatestReleaseWithSHA(token string, actionName string, currentVersion string) (string, string, error)

GetLatestReleaseWithSHA searches for the latest release of a GitHub action and returns both the version and SHA. The actionName should be in the format "org/repo/optional_subpath".

Types

type ReleaseInfo

type ReleaseInfo struct {
	MajorVersion string // The major version (e.g., v3)
	FullVersion  string // The full version (e.g., v3.5.0)
	SHA          string // The SHA of the release
}

Jump to

Keyboard shortcuts

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