From feb25115fc9e0dd4dcfa6b6b41df67bc646b8d0f Mon Sep 17 00:00:00 2001 From: Lewis Card Date: Mon, 31 Mar 2025 10:22:06 +0100 Subject: [PATCH] Replace the runner by default and add unattended option --- dist/index.js | 4 ++-- src/aws.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index b15374de..4d13776f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -65557,7 +65557,7 @@ function buildUserDataScript(githubRegistrationToken, label) { `echo "${config.input.preRunnerScript}" > pre-runner-script.sh`, 'source pre-runner-script.sh', 'export RUNNER_ALLOW_RUNASROOT=1', - `./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`, + `./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --replace --unattended`, './run.sh', ]; } else { @@ -65571,7 +65571,7 @@ function buildUserDataScript(githubRegistrationToken, label) { 'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz', 'chown ubuntu:ubuntu /home/ubuntu/actions-runner', 'sudo usermod -aG docker ubuntu', - `sudo -u ubuntu ./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`, + `sudo -u ubuntu ./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --replace --unattended`, 'sudo -u ubuntu ./run.sh', ]; } diff --git a/src/aws.js b/src/aws.js index 90145372..d6d3378c 100644 --- a/src/aws.js +++ b/src/aws.js @@ -13,7 +13,7 @@ function buildUserDataScript(githubRegistrationToken, label) { `echo "${config.input.preRunnerScript}" > pre-runner-script.sh`, 'source pre-runner-script.sh', 'export RUNNER_ALLOW_RUNASROOT=1', - `./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`, + `./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --replace --unattended`, './run.sh', ]; } else { @@ -27,7 +27,7 @@ function buildUserDataScript(githubRegistrationToken, label) { 'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz', 'chown ubuntu:ubuntu /home/ubuntu/actions-runner', 'sudo usermod -aG docker ubuntu', - `sudo -u ubuntu ./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`, + `sudo -u ubuntu ./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --replace --unattended`, 'sudo -u ubuntu ./run.sh', ]; }