From d271c2d349d23285663a3ae9e81a8423b9abdb2c Mon Sep 17 00:00:00 2001 From: Mahangu Weerasinghe Date: Tue, 2 Jan 2024 08:55:04 +0530 Subject: [PATCH 1/2] Add --name to aws.js --- src/aws.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aws.js b/src/aws.js index bcf53646..4b517d75 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} --name $(hostname)-$(uuidgen)`, './run.sh', ]; } else { @@ -26,7 +26,7 @@ function buildUserDataScript(githubRegistrationToken, label) { 'curl -O -L https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz', 'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz', '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} --name $(hostname)-$(uuidgen)`, './run.sh', ]; } From 148a8cfa80acd94203eed32a3a26b49af46fa034 Mon Sep 17 00:00:00 2001 From: Mahangu Weerasinghe Date: Tue, 2 Jan 2024 09:13:14 +0530 Subject: [PATCH 2/2] Add --name to dist/index.js --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 409180d4..7f5b4dda 100644 --- a/dist/index.js +++ b/dist/index.js @@ -62813,7 +62813,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} --name $(hostname)-$(uuidgen)`, './run.sh', ]; } else { @@ -62826,7 +62826,7 @@ function buildUserDataScript(githubRegistrationToken, label) { 'curl -O -L https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz', 'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz', '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} --name $(hostname)-$(uuidgen)`, './run.sh', ]; }