From 21d5973243b6af744cfc727888ce55056e7af364 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Thu, 16 Apr 2020 10:38:06 -0400 Subject: [PATCH] cr feedback --- docs/automate.md | 4 ++-- scripts/create-latest-svc.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/automate.md b/docs/automate.md index a09a7a3c6..11a87a3ec 100644 --- a/docs/automate.md +++ b/docs/automate.md @@ -21,7 +21,7 @@ export RUNNER_CFG_PAT=yourPAT :point_right: [Sample script here](../scripts/create-latest-svc.sh) :point_left: -Run as a one-line. NOTE: replace with yourorg/yourrepo (repo level) or just yourorg (org level) +Run as a one-liner. NOTE: replace with yourorg/yourrepo (repo level) or just yourorg (org level) ```bash curl -s https://raw.githubusercontent.com/actions/runner/automate/scripts/create-latest-svc.sh | bash -s yourorg/yourrepo ``` @@ -51,7 +51,7 @@ curl -s https://raw.githubusercontent.com/actions/runner/automate/scripts/remove :point_right: [Sample script here](../scripts/delete.sh) :point_left: -Repo level one liner. NOTE: replace with yourorg/yourrepo (repo level) or just yourorg (org level) and replace runnername +Repo level one-liner. NOTE: replace with yourorg/yourrepo (repo level) or just yourorg (org level) and replace runnername ```bash curl -s https://raw.githubusercontent.com/actions/runner/automate/scripts/delete.sh | bash -s yourorg/yourrepo runnername ``` diff --git a/scripts/create-latest-svc.sh b/scripts/create-latest-svc.sh index 1971fda8a..f056c51ad 100755 --- a/scripts/create-latest-svc.sh +++ b/scripts/create-latest-svc.sh @@ -118,7 +118,7 @@ pushd ./runner runner_url="https://github.com/${runner_scope}" echo echo "Configuring ${runner_name} @ $runner_url" -echo "./config.sh --unattended --url $runner_url --token $RUNNER_TOKEN --name $runner_name" +echo "./config.sh --unattended --url $runner_url --token *** --name $runner_name" sudo -E -u ${svc_user} ./config.sh --unattended --url $runner_url --token $RUNNER_TOKEN --name $runner_name #---------------------------------------