Fix typo "GetLatestRunnerToken" (#27680)

This commit is contained in:
Jason Song
2023-10-18 23:52:44 +08:00
committed by GitHub
parent 0b654fa8dc
commit 0a2b93d411
3 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ func GenerateActionsRunnerToken(ctx *context.PrivateContext) {
})
}
token, err := actions_model.GetLastestRunnerToken(ctx, owner, repo)
token, err := actions_model.GetLatestRunnerToken(ctx, owner, repo)
if errors.Is(err, util.ErrNotExist) || (token != nil && !token.IsActive) {
token, err = actions_model.NewRunnerToken(ctx, owner, repo)
if err != nil {