forked from Ivasoft/github-actions
Optionally no pulling using NoForcePull
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user