buildr/modules/helpers/github/registration.go

14 lines
286 B
Go

package github
import (
"context"
"code.icb4dc0.de/buildr/buildr/modules/state"
"github.com/hashicorp/hcl/v2"
)
func RegisterInContext(ctx context.Context, evalCtx *hcl.EvalContext, cache state.Cache) {
evalCtx.Functions["gh_latest_release"] = GetLatestReleaseTag(ctx, cache)
}