buildr/modules/helpers/github/registration.go

14 lines
286 B
Go
Raw Permalink Normal View History

2023-03-15 17:56:38 +00:00
package github
import (
"context"
"code.icb4dc0.de/buildr/buildr/modules/state"
2023-03-15 17:56:38 +00:00
"github.com/hashicorp/hcl/v2"
)
func RegisterInContext(ctx context.Context, evalCtx *hcl.EvalContext, cache state.Cache) {
evalCtx.Functions["gh_latest_release"] = GetLatestReleaseTag(ctx, cache)
2023-03-15 17:56:38 +00:00
}