typo fixed for hooks env

This commit is contained in:
Nikola Jokic 2025-02-21 14:04:14 +01:00
parent d6851a7019
commit b2f0d73d32
No known key found for this signature in database
GPG Key ID: 09265A4BEA4F568A
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ func (er *EphemeralRunner) HasContainerHookConfigured() bool {
}
for _, env := range er.Spec.Spec.Containers[i].Env {
if env.Name == "ACTIONS_RUNNER_CONTAINER_HOOK" {
if env.Name == "ACTIONS_RUNNER_CONTAINER_HOOKS" {
return true
}
}

View File

@ -59,7 +59,7 @@ func newExampleRunner(name, namespace, configSecretName string) *v1alpha1.Epheme
},
Env: []corev1.EnvVar{
{
Name: "ACTIONS_RUNNER_CONTAINER_HOOK",
Name: "ACTIONS_RUNNER_CONTAINER_HOOKS",
Value: "/tmp/hook/index.js",
},
},