From d6122975a22bab23a3a59f6c2227cebe1b71fbd9 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Thu, 16 Apr 2020 18:31:53 -0400 Subject: [PATCH] cr feedback --- scripts/delete.sh | 6 +++--- scripts/remove-svc.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/delete.sh b/scripts/delete.sh index 004909029..96cf3a61e 100755 --- a/scripts/delete.sh +++ b/scripts/delete.sh @@ -7,7 +7,7 @@ set -e # The caller should have already ensured the runner is gone and/or stopped # # Examples: -# RUNNER_CFG_PAT= ./delete.sh myuser/myrepo +# RUNNER_CFG_PAT= ./delete.sh myuser/myrepo myname # RUNNER_CFG_PAT= ./delete.sh myorg # # Usage: @@ -50,7 +50,7 @@ fi #-------------------------------------- # Ensure offline #-------------------------------------- -runner_status=$(curl -s -X GET ${base_api_url}/${runner_scope}/actions/runners -H "accept: application/vnd.github.everest-preview+json" -H "authorization: token ${RUNNER_CFG_PAT}" \ +runner_status=$(curl -s -X GET ${base_api_url}/${runner_scope}/actions/runners?per_page=100 -H "accept: application/vnd.github.everest-preview+json" -H "authorization: token ${RUNNER_CFG_PAT}" \ | jq -M -j ".runners | .[] | [select(.name == \"${runner_name}\")] | .[0].status") if [ -z "${runner_status}" ]; then @@ -66,7 +66,7 @@ fi #-------------------------------------- # Get id of runner to remove #-------------------------------------- -runner_id=$(curl -s -X GET ${base_api_url}/${runner_scope}/actions/runners -H "accept: application/vnd.github.everest-preview+json" -H "authorization: token ${RUNNER_CFG_PAT}" \ +runner_id=$(curl -s -X GET ${base_api_url}/${runner_scope}/actions/runners?per_page=100 -H "accept: application/vnd.github.everest-preview+json" -H "authorization: token ${RUNNER_CFG_PAT}" \ | jq -M -j ".runners | .[] | [select(.name == \"${runner_name}\")] | .[0].id") if [ -z "${runner_id}" ]; then diff --git a/scripts/remove-svc.sh b/scripts/remove-svc.sh index 7fae4ca97..c55d0075d 100755 --- a/scripts/remove-svc.sh +++ b/scripts/remove-svc.sh @@ -73,4 +73,4 @@ if [ "${runner_plat}" == "linux" ]; then fi ${prefix}./svc.sh stop ${prefix}./svc.sh uninstall -./config.sh remove --token $REMOVE_TOKEN +${prefix}./config.sh remove --token $REMOVE_TOKEN