diff --git a/src/tasks/gitea/gitea.ts b/src/tasks/gitea/gitea.ts index 2d425225..a64206e5 100644 --- a/src/tasks/gitea/gitea.ts +++ b/src/tasks/gitea/gitea.ts @@ -101,7 +101,7 @@ export async function upsertRepo( return undefined } export async function addHook(repoApi: RepositoryApi, hasTektonHook: boolean): Promise { - if (hasTektonHook) + if (!hasTektonHook) await doApiCall( errors, `Adding hook "tekton" to repo otomi/values`,