mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-07-27 17:28:35 +00:00
feat: add FORGEJO_ACTIONS{,_RUNNER_VERSION} to jobs env
This commit is contained in:
parent
f1b67559b1
commit
42cacd47c2
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,9 @@ func NewRunner(cfg *config.Config, reg *config.Registration, cli client.Client)
|
||||||
envs["GITEA_ACTIONS"] = "true"
|
envs["GITEA_ACTIONS"] = "true"
|
||||||
envs["GITEA_ACTIONS_RUNNER_VERSION"] = ver.Version()
|
envs["GITEA_ACTIONS_RUNNER_VERSION"] = ver.Version()
|
||||||
|
|
||||||
|
envs["FORGEJO_ACTIONS"] = "true"
|
||||||
|
envs["FORGEJO_ACTIONS_RUNNER_VERSION"] = ver.Version()
|
||||||
|
|
||||||
return &Runner{
|
return &Runner{
|
||||||
name: reg.Name,
|
name: reg.Name,
|
||||||
cfg: cfg,
|
cfg: cfg,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue