Skip to content

Commit

Permalink
change logic to select os
Browse files Browse the repository at this point in the history
  • Loading branch information
arielly-parussulo committed Apr 28, 2023
1 parent 316114b commit c4f1f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function buildUserDataScript(githubRegistrationToken, label) {
'#!/bin/bash',
'mkdir actions-runner && cd actions-runner',
'case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
'case $(uname -r) in Darwin) OS="osx" ;; Linux) OS="linux" ;; esac && export RUNNER_OS=${OS}',
'case $(uname -a) in Darwin*) OS="osx" ;; Linux*) OS="linux" ;; esac && export RUNNER_OS=${OS}',
'export VERSION="2.303.0"',
'curl -O -L https://github.com/actions/runner/releases/download/${VERSION}/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-${VERSION}.tar.gz',
Expand Down

0 comments on commit c4f1f61

Please sign in to comment.