From 0c837e811bb536c736a0eff87acb39e505ab7fb0 Mon Sep 17 00:00:00 2001 From: Chad Crouch <34277139+chaddyc@users.noreply.github.com> Date: Wed, 18 Dec 2024 21:24:54 +0200 Subject: [PATCH] add - runner name var --- entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index edf8660..07982d6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,8 +12,10 @@ if [ ! -f .runner ]; then ./config.sh --url "${GITHUB_URL}" --token "${RUNNER_TOKEN}" --unattended --replace fi +RUNNER_NAME=${RUNNER_NAME:-"default-runner"} + # Trap SIGTERM and SIGINT to allow for cleanup trap './config.sh remove --unattended && exit 0' SIGTERM SIGINT # Start the runner -./run.sh \ No newline at end of file +./run.sh