Upgrade go mod (#154)

Reviewed-on: https://gitea.com/gitea/act/pulls/154
Reviewed-by: silverwind <silverwind@noreply.gitea.com>
This commit is contained in:
Lunny Xiao
2026-02-22 20:39:43 +00:00
parent ddf9159a8f
commit 28740d7788
4 changed files with 79 additions and 88 deletions

View File

@@ -23,7 +23,7 @@ func (a *ActionRunsUsing) UnmarshalYAML(unmarshal func(interface{}) error) error
case ActionRunsUsingNode24, ActionRunsUsingNode20, ActionRunsUsingNode16, ActionRunsUsingNode12, ActionRunsUsingDocker, ActionRunsUsingComposite, ActionRunsUsingGo:
*a = format
default:
return fmt.Errorf(fmt.Sprintf("The runs.using key in action.yml must be one of: %v, got %s", []string{
return fmt.Errorf("The runs.using key in action.yml must be one of: %v, got %s", []string{
ActionRunsUsingComposite,
ActionRunsUsingDocker,
ActionRunsUsingNode12,
@@ -31,7 +31,7 @@ func (a *ActionRunsUsing) UnmarshalYAML(unmarshal func(interface{}) error) error
ActionRunsUsingNode20,
ActionRunsUsingNode24,
ActionRunsUsingGo,
}, format))
}, format)
}
return nil
}