From ee44bb7f0a4a0ad95b168d6c7371e39323ae1be7 Mon Sep 17 00:00:00 2001 From: Sudhish <108091997+skrdgraph@users.noreply.github.com> Date: Wed, 14 Sep 2022 16:14:18 -0700 Subject: [PATCH] fix(test): runner reboot fix (#8284) * Update gh-runner.sh * Update README.md --- contrib/gh-runner/README.md | 6 +----- contrib/gh-runner/gh-runner.sh | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/contrib/gh-runner/README.md b/contrib/gh-runner/README.md index 80c39b8a229..afd2c3ab285 100644 --- a/contrib/gh-runner/README.md +++ b/contrib/gh-runner/README.md @@ -14,8 +14,4 @@ wget https://raw.githubusercontent.com/dgraph-io/dgraph/main/contrib/gh-runner/g ``` sh gh-runner.sh ``` -NOTE: this will reboot the machine, once the machine is back up follow the next steps -4. Restart the Github Actions Runner agent -``` -cd /home/ubuntu/actions-runner && ./run.sh & -``` +NOTE: this will reboot the machine, once the machine is back up it will connect to Github diff --git a/contrib/gh-runner/gh-runner.sh b/contrib/gh-runner/gh-runner.sh index 3799cf4c13d..0b45d46b4eb 100644 --- a/contrib/gh-runner/gh-runner.sh +++ b/contrib/gh-runner/gh-runner.sh @@ -26,6 +26,7 @@ curl -o actions-runner-linux-x64-2.296.2.tar.gz -L https://github.com/actions/ru echo "34a8f34956cdacd2156d4c658cce8dd54c5aef316a16bbbc95eb3ca4fd76429a actions-runner-linux-x64-2.296.2.tar.gz" | shasum -a 256 -c tar xzf ./actions-runner-linux-x64-2.296.2.tar.gz ./config.sh --url https://github.com/dgraph-io/dgraph --token $TOKEN -./run.sh & # TODO move to /dev/null +sudo ./svc.sh install +sudo ./svc.sh start # Reboot Machine sudo reboot