1
0
Fork 0
forked from forgejo/forgejo

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {