mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
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:
parent
f31d7fe160
commit
f93a6e2817
5 changed files with 9 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue