Exclude setup from cli command exec. (#3523)

The woodpecker-cli exec command only execute local pipelines so setup
for remote server is not needed.
This commit is contained in:
manuelluis 2024-03-20 17:45:46 +01:00 committed by GitHub
parent 75803dba41
commit 00b1651f47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,7 @@ type Config struct {
LogLevel string `json:"log_level"`
}
var skipSetupForCommands = []string{"setup", "help", "h", "version", "update", "lint", ""}
var skipSetupForCommands = []string{"setup", "help", "h", "version", "update", "lint", "exec", ""}
func Load(c *cli.Context) error {
if firstArg := c.Args().First(); slices.Contains(skipSetupForCommands, firstArg) {