File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145034,8 +145034,9 @@ function buildUserDataScript(githubRegistrationToken, label) {
145034145034 `echo "${config.input.preRunnerScript}" > pre-runner-script.sh`,
145035145035 'source pre-runner-script.sh',
145036145036 'case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
145037- 'curl -O -L https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz',
145038- 'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz',
145037+ 'RUNNER_VERSION=$(curl -s "https://api.github.com/repos/actions/runner/releases/latest" | jq -r ".name" | tr -d "v")',
145038+ 'curl -O -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz',
145039+ 'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz',
145039145040 'export RUNNER_ALLOW_RUNASROOT=1',
145040145041 `./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`,
145041145042 ];
@@ -145202,7 +145203,6 @@ module.exports = {
145202145203 waitForInstanceRunning,
145203145204};
145204145205
145205-
145206145206/***/ }),
145207145207
145208145208/***/ 4570:
You can’t perform that action at this time.
0 commit comments