mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-19 20:56:21 +00:00
Set a default value for build-event
flag of cli exec
command (#1212)
Otherwise `cli exec` does not do anything due to the default constraints applied to a pipeline (i.e., some kind of build event is expected).
This commit is contained in:
parent
70114ed1fd
commit
c2ba272871
2 changed files with 2 additions and 1 deletions
|
@ -157,6 +157,7 @@ var flags = []cli.Flag{
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
EnvVars: []string{"CI_BUILD_EVENT"},
|
EnvVars: []string{"CI_BUILD_EVENT"},
|
||||||
Name: "build-event",
|
Name: "build-event",
|
||||||
|
Value: "manual",
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
EnvVars: []string{"CI_BUILD_LINK"},
|
EnvVars: []string{"CI_BUILD_LINK"},
|
||||||
|
|
|
@ -286,7 +286,7 @@ execute a local build
|
||||||
|
|
||||||
**--build-created**="": (default: 0)
|
**--build-created**="": (default: 0)
|
||||||
|
|
||||||
**--build-event**="":
|
**--build-event**="": (default: manual)
|
||||||
|
|
||||||
**--build-finished**="": (default: 0)
|
**--build-finished**="": (default: 0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue