Skip to content

Commit 29a5bb3

Browse files
author
Paul Ashton
committed
Add unique names (machulav#127)
1 parent 4e0303d commit 29a5bb3

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
@@ -11,7 +11,7 @@ function buildUserDataScript(githubRegistrationToken, label) {
1111
'#!/bin/bash',
1212
`cd "${config.input.runnerHomeDir}"`,
1313
'export RUNNER_ALLOW_RUNASROOT=1',
14-
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`,
14+
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --name $(hostname)-$(uuidgen)`,
1515
'./run.sh',
1616
];
1717
} else {
@@ -22,7 +22,7 @@ function buildUserDataScript(githubRegistrationToken, label) {
2222
'curl -O -L https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz',
2323
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz',
2424
'export RUNNER_ALLOW_RUNASROOT=1',
25-
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`,
25+
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --name $(hostname)-$(uuidgen)`,
2626
'./run.sh',
2727
];
2828
}

0 commit comments

Comments
 (0)