summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheFox0x7 <thefox0x7@gmail.com>2024-04-02 20:23:26 +0200
committerearl-warren <earl-warren@noreply.code.forgejo.org>2024-04-02 20:23:26 +0200
commitebd01185d1f6f4763fa7f263792386f86cdf8650 (patch)
tree322661cd462ea6db946490180384e6efa1eac806
parentMerge pull request '[FORGEJO] a network of "" is not the same as "host"' (#35... (diff)
downloadforgejo-act-1.21.0.tar.xz
forgejo-act-1.21.0.zip
[FORGEJO] add forge alias for github (#37)v1.21.0
I left gitea for backwards compatibility Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/37 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
-rw-r--r--pkg/exprparser/interpreter.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/exprparser/interpreter.go b/pkg/exprparser/interpreter.go
index 6c661b7..29c5686 100644
--- a/pkg/exprparser/interpreter.go
+++ b/pkg/exprparser/interpreter.go
@@ -157,6 +157,8 @@ func (impl *interperterImpl) evaluateVariable(variableNode *actionlint.VariableN
return impl.env.Github, nil
case "gitea": // compatible with Gitea
return impl.env.Github, nil
+ case "forge":
+ return impl.env.Github, nil
case "env":
return impl.env.Env, nil
case "job":