Skip to content

Commit 74e9d02

Browse files
fix init script
1 parent a22cb30 commit 74e9d02

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

dist/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62818,11 +62818,13 @@ function buildUserDataScript(githubRegistrationToken, label) {
6281862818
return [
6281962819
'#!/bin/bash',
6282062820
'mkdir actions-runner && cd actions-runner',
62821-
'case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
62821+
'case $(uname -m) in aarch64|arm64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
6282262822
'case $(uname -a) in Darwin*) OS="osx" ;; Linux*) OS="linux" ;; esac && export RUNNER_OS=${OS}',
6282362823
'export VERSION="2.303.0"',
62824-
'curl -O -L https://github.com/actions/runner/releases/download/${VERSION}/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
62825-
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-${VERSION}.tar.gz',
62824+
'curl -O -L https://github.com/actions/runner/releases/download/v${VERSION}/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
62825+
'export LC_ALL=en_US.UTF-8',
62826+
'export LANG=en_EN.UTF-8',
62827+
'tar xzf ./actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
6282662828
'export RUNNER_ALLOW_RUNASROOT=1',
6282762829
`./config.sh --url ${config.github.url} --token ${githubRegistrationToken} --labels ${label} --name ${label} --runnergroup default --work $(pwd)`,
6282862830
'./run.sh',

src/aws.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ function buildUserDataScript(githubRegistrationToken, label) {
1818
return [
1919
'#!/bin/bash',
2020
'mkdir actions-runner && cd actions-runner',
21-
'case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
21+
'case $(uname -m) in aarch64|arm64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
2222
'case $(uname -a) in Darwin*) OS="osx" ;; Linux*) OS="linux" ;; esac && export RUNNER_OS=${OS}',
2323
'export VERSION="2.303.0"',
24-
'curl -O -L https://github.com/actions/runner/releases/download/${VERSION}/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
25-
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-${VERSION}.tar.gz',
24+
'curl -O -L https://github.com/actions/runner/releases/download/v${VERSION}/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
25+
'export LC_ALL=en_US.UTF-8',
26+
'export LANG=en_EN.UTF-8',
27+
'tar xzf ./actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
2628
'export RUNNER_ALLOW_RUNASROOT=1',
2729
`./config.sh --url ${config.github.url} --token ${githubRegistrationToken} --labels ${label} --name ${label} --runnergroup default --work $(pwd)`,
2830
'./run.sh',

0 commit comments

Comments
 (0)