feat: add flag to always run the checkout action (#1049)
act has a feature that skips the checkout action to do a remote checkout when a local checkout exists. in some cases, e.g. when running act in a CI, you always want to clone the repository.
This commit is contained in:
@@ -708,6 +708,10 @@ func setActionRuntimeVars(rc *RunContext, env map[string]string) {
|
||||
}
|
||||
|
||||
func (rc *RunContext) localCheckoutPath() (string, bool) {
|
||||
if rc.Config.NoSkipCheckout {
|
||||
return "", false
|
||||
}
|
||||
|
||||
ghContext := rc.getGithubContext()
|
||||
for _, step := range rc.Run.Job().Steps {
|
||||
if isLocalCheckout(ghContext, step) {
|
||||
|
Reference in New Issue
Block a user