Skip to content

Commit ff75ba3

Browse files
committed
Merging machulav#127
1 parent 1bd3862 commit ff75ba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aws.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ 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+
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --name $(hostname)-$(uuidgen)`,
1717
'./run.sh',
1818
];
1919
} else {
@@ -26,7 +26,7 @@ function buildUserDataScript(githubRegistrationToken, label) {
2626
'curl -O -L https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz',
2727
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz',
2828
'export RUNNER_ALLOW_RUNASROOT=1',
29-
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`,
29+
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --name $(hostname)-$(uuidgen)`,
3030
'./run.sh',
3131
];
3232
}

0 commit comments

Comments
 (0)