mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
feat(envs): support drone plugin
- Add `PLUGIN_SCRIPT_FILE` to the environment variables list in the main function Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
parent
43270d582c
commit
1edb4744ca
2
main.go
2
main.go
@ -134,7 +134,7 @@ func main() {
|
|||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "script.file",
|
Name: "script.file",
|
||||||
Usage: "execute commands from a file for github action",
|
Usage: "execute commands from a file for github action",
|
||||||
EnvVars: []string{"INPUT_SCRIPT_FILE"},
|
EnvVars: []string{"PLUGIN_SCRIPT_FILE", "INPUT_SCRIPT_FILE"},
|
||||||
},
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "script.stop",
|
Name: "script.stop",
|
||||||
|
Loading…
Reference in New Issue
Block a user