Skip to content

Commit

Permalink
fix for failed delete on graceful shutdown + support for runnergroup
Browse files Browse the repository at this point in the history
  • Loading branch information
NorseGaud committed Oct 9, 2024
1 parent 5407065 commit 0f38cd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/handlers/github/register-runner.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ set -exo pipefail
[ -z "$3" ] && (echo "Error: URL argument is missing." && exit 1)
[ -z "$4" ] && (echo "Error: Labels argument is missing." && exit 1)
RUNNER_HOME="${RUNNER_HOME:-"$HOME/actions-runner"}"
RUNNER_GROUP_FLAG="${RUNNER_GROUP_FLAG:-"--runnergroup ${5}"}"
if [[ -n "${5}" ]]; then
RUNNER_GROUP_FLAG="--runnergroup ${5}"
fi
mkdir -p "${RUNNER_HOME}"
cd "${RUNNER_HOME}"
eval ./config.sh --name "${1}" \
Expand Down

0 comments on commit 0f38cd3

Please sign in to comment.