Skip to content

Commit de1eb7f

Browse files
test passing the label as name
1 parent bf30ffc commit de1eb7f

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 ${config.github.url} --token ${githubRegistrationToken} --labels ${label}`,
14+
`./config.sh --url ${config.github.url} --token ${githubRegistrationToken} --labels ${label} --name ${label}`,
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 ${config.github.url} --token ${githubRegistrationToken} --labels ${label}`,
25+
`./config.sh --url ${config.github.url} --token ${githubRegistrationToken} --labels ${label} --name ${label}`,
2626
'./run.sh',
2727
];
2828
}

0 commit comments

Comments
 (0)