@@ -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 } --ephemeral ` ,
1717 './run.sh' ,
1818 ] ;
1919 } else {
@@ -23,10 +23,10 @@ function buildUserDataScript(githubRegistrationToken, label) {
2323 `echo "${ config . input . preRunnerScript } " > pre-runner-script.sh` ,
2424 'source pre-runner-script.sh' ,
2525 'case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}' ,
26- 'curl -O -L https://github.com/actions/runner/releases/download/v2.299.1 /actions-runner-linux-${RUNNER_ARCH}-2.299.1 .tar.gz' ,
27- 'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.299.1 .tar.gz' ,
26+ 'curl -O -L https://github.com/actions/runner/releases/download/2.306.0 /actions-runner-linux-${RUNNER_ARCH}-2.306.0 .tar.gz' ,
27+ 'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.306.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 } --ephemeral ` ,
3030 './run.sh' ,
3131 ] ;
3232 }
0 commit comments