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
|
EventPayload string // Webhook event payload
|
||||||
Actor string
|
Actor string
|
||||||
Verbose bool
|
Verbose bool
|
||||||
|
NoForcePull bool
|
||||||
}
|
}
|
||||||
|
|
||||||
Plugin struct {
|
Plugin struct {
|
||||||
@@ -92,6 +93,10 @@ func (p Plugin) Exec() error {
|
|||||||
cmdArgs = append(cmdArgs, "-v")
|
cmdArgs = append(cmdArgs, "-v")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if p.Action.NoForcePull {
|
||||||
|
cmdArgs = append(cmdArgs, "--pull", "false")
|
||||||
|
}
|
||||||
|
|
||||||
if p.Daemon.Disabled {
|
if p.Daemon.Disabled {
|
||||||
hostWorkDirPath, guestWorkDirPath, err := getWorkDirPath(p, context.Background())
|
hostWorkDirPath, guestWorkDirPath, err := getWorkDirPath(p, context.Background())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user