Skip to content

Commit a6dbcef

Browse files
author
GitHub Actions
committed
Update dist
1 parent c454bad commit a6dbcef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)