From 1edb4744ca21701059aeb5826d630a1a0ea9ff63 Mon Sep 17 00:00:00 2001 From: appleboy Date: Sun, 27 Oct 2024 22:22:23 +0800 Subject: [PATCH] feat(envs): support drone plugin - Add `PLUGIN_SCRIPT_FILE` to the environment variables list in the main function Signed-off-by: appleboy --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7f0ec26..343c95e 100644 --- a/main.go +++ b/main.go @@ -134,7 +134,7 @@ func main() { &cli.StringFlag{ Name: "script.file", Usage: "execute commands from a file for github action", - EnvVars: []string{"INPUT_SCRIPT_FILE"}, + EnvVars: []string{"PLUGIN_SCRIPT_FILE", "INPUT_SCRIPT_FILE"}, }, &cli.BoolFlag{ Name: "script.stop",