Skip to content

Commit

Permalink
Update user_data.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
muratugureminoglu authored Jul 31, 2024
1 parent eb143da commit 2459bc8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions user_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ su - $USER -c "
mkdir -p actions-runner
cd actions-runner
curl -o actions-runner-linux-x64-$RUNNER_VERSION.tar.gz -L https://github.com/actions/runner/releases/download/v$RUNNER_VERSION/actions-runner-linux-x64-$RUNNER_VERSION.tar.gz
tar xzf ./actions-runner-linux-x64-$RUNNER_VERSION.tar.gz"
tar xzf ./actions-runner-linux-x64-$RUNNER_VERSION.tar.gz
cat <<EOF >> ~/actions-runner/.env
ANDROID_HOME=/home/$USER/android
ANDROID_SDK_ROOT=/home/$USER/android
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/
EOF"

su - ubuntu -c "
su - $USER -c "
/home/$USER/actions-runner/config.sh --url https://github.com/$RUNNER_ORG --token $RUNNER_TOKEN --unattended"

cd /home/$USER/actions-runner/
Expand Down

0 comments on commit 2459bc8

Please sign in to comment.