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:
appleboy 2024-10-27 22:22:23 +08:00
parent 43270d582c
commit 1edb4744ca
No known key found for this signature in database

View File

@ -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",