1
0
Fork 0
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:
Robert Kowalski 2022-03-21 12:23:06 +01:00 committed by GitHub
parent f31d7fe160
commit f93a6e2817
5 changed files with 9 additions and 1 deletions

View file

@ -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) {