Skip to content

Commit 05fadee

Browse files
committed
Merging machulav#127
1 parent 1bd3862 commit 05fadee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/aws.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ function buildUserDataScript(githubRegistrationToken, label) {
1313
`echo "${config.input.preRunnerScript}" > pre-runner-script.sh`,
1414
'source pre-runner-script.sh',
1515
'export RUNNER_ALLOW_RUNASROOT=1',
16-
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`,
16+
'export ACTIONS_RUNNER_INPUT_REPLACE=true',
17+
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --name $(hostname)-$(uuidgen)`,
1718
'./run.sh',
1819
];
1920
} else {
@@ -26,7 +27,8 @@ function buildUserDataScript(githubRegistrationToken, label) {
2627
'curl -O -L https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz',
2728
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz',
2829
'export RUNNER_ALLOW_RUNASROOT=1',
29-
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`,
30+
'export ACTIONS_RUNNER_INPUT_REPLACE=true',
31+
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --name $(hostname)-$(uuidgen)`,
3032
'./run.sh',
3133
];
3234
}

0 commit comments

Comments
 (0)