2023-03-15 17:56:38 +00:00
|
|
|
package github
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2023-05-02 17:11:12 +00:00
|
|
|
"code.icb4dc0.de/buildr/buildr/modules/state"
|
|
|
|
|
2023-03-15 17:56:38 +00:00
|
|
|
"github.com/hashicorp/hcl/v2"
|
|
|
|
)
|
|
|
|
|
2023-06-09 15:33:46 +00:00
|
|
|
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
|
|
|
}
|