mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
adding refspec to agent env
This commit is contained in:
parent
43b11ed322
commit
abc8902bee
1 changed files with 1 additions and 0 deletions
|
@ -251,6 +251,7 @@ func toEnv(w *model.Work) map[string]string {
|
||||||
"DRONE_REMOTE_URL": w.Repo.Clone,
|
"DRONE_REMOTE_URL": w.Repo.Clone,
|
||||||
"DRONE_COMMIT_SHA": w.Build.Commit,
|
"DRONE_COMMIT_SHA": w.Build.Commit,
|
||||||
"DRONE_COMMIT_REF": w.Build.Ref,
|
"DRONE_COMMIT_REF": w.Build.Ref,
|
||||||
|
"DRONE_COMMIT_REFSPEC": w.Build.Refspec,
|
||||||
"DRONE_COMMIT_BRANCH": w.Build.Branch,
|
"DRONE_COMMIT_BRANCH": w.Build.Branch,
|
||||||
"DRONE_COMMIT_LINK": w.Build.Link,
|
"DRONE_COMMIT_LINK": w.Build.Link,
|
||||||
"DRONE_COMMIT_MESSAGE": w.Build.Message,
|
"DRONE_COMMIT_MESSAGE": w.Build.Message,
|
||||||
|
|
Loading…
Reference in a new issue