forked from forgejo/forgejo
Fix typo "GetLatestRunnerToken" (#27680)
This commit is contained in:
parent
0b654fa8dc
commit
0a2b93d411
3 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue