File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ function buildUserDataScript(githubRegistrationToken, label) {
13
13
`echo "${ config . input . preRunnerScript } " > pre-runner-script.sh` ,
14
14
'source pre-runner-script.sh' ,
15
15
'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)` ,
17
18
'./run.sh' ,
18
19
] ;
19
20
} else {
@@ -26,7 +27,8 @@ function buildUserDataScript(githubRegistrationToken, label) {
26
27
'curl -O -L https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz' ,
27
28
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz' ,
28
29
'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)` ,
30
32
'./run.sh' ,
31
33
] ;
32
34
}
You can’t perform that action at this time.
0 commit comments