diff --git a/plugin.go b/plugin.go index 769e53b..2e2bef3 100644 --- a/plugin.go +++ b/plugin.go @@ -38,6 +38,7 @@ type ( EventPayload string // Webhook event payload Actor string Verbose bool + NoForcePull bool } Plugin struct { @@ -92,6 +93,10 @@ func (p Plugin) Exec() error { cmdArgs = append(cmdArgs, "-v") } + if p.Action.NoForcePull { + cmdArgs = append(cmdArgs, "--pull", "false") + } + if p.Daemon.Disabled { hostWorkDirPath, guestWorkDirPath, err := getWorkDirPath(p, context.Background()) if err != nil {