From 929ea6df751b98f399498d35bb1c68f4e6c15e14 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Thu, 23 Mar 2023 12:14:28 +0800 Subject: [PATCH] Support gitea context (#27) And we will be able to use context like `${{ gitea.repository }}` in workflows yaml files, it's same as `${{ github.repository }}` Reviewed-on: https://gitea.com/gitea/act/pulls/27 Reviewed-by: Zettat123 --- pkg/exprparser/interpreter.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/exprparser/interpreter.go b/pkg/exprparser/interpreter.go index ef3e8e1..3f7e9b6 100644 --- a/pkg/exprparser/interpreter.go +++ b/pkg/exprparser/interpreter.go @@ -152,6 +152,8 @@ func (impl *interperterImpl) evaluateVariable(variableNode *actionlint.VariableN switch strings.ToLower(variableNode.Name) { case "github": return impl.env.Github, nil + case "gitea": // compatible with Gitea + return impl.env.Github, nil case "env": return impl.env.Env, nil case "job":