From 76e27429a44ee4bfb6d09db36af5f31aa7a94652 Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Fri, 24 Jul 2026 21:29:17 -0700 Subject: [PATCH] Update runner configuration command to use --replace Signed-off-by: Djamil Legato --- action.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.sh b/action.sh index 22f9d3b..26349de 100755 --- a/action.sh +++ b/action.sh @@ -257,7 +257,7 @@ function build_startup_script { echo "ACTIONS_RUNNER_HOOK_JOB_STARTED=/usr/bin/gce_cancel_shutdown.sh" >.env gcloud compute instances add-labels ${VM_ID} --zone=${machine_zone} --labels=gh_ready=0 && \\ if [ ! -f /actions-runner/.runner ]; then - RUNNER_ALLOW_RUNASROOT=1 ./config.sh --url https://github.com/${GITHUB_REPOSITORY} --token ${RUNNER_TOKEN} --labels ${VM_ID} --unattended ${ephemeral_flag} --disableupdate && \\ + RUNNER_ALLOW_RUNASROOT=1 ./config.sh --url https://github.com/${GITHUB_REPOSITORY} --token ${RUNNER_TOKEN} --labels ${VM_ID} --unattended --replace ${ephemeral_flag} --disableupdate && \\ ./svc.sh install && \\ ./svc.sh start else