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 <zettat123@noreply.gitea.io>
This commit is contained in:
parent
f6a8a0e643
commit
929ea6df75
1 changed files with 2 additions and 0 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue