mirror of
https://github.com/hanzoai/docker-github-actions-runner.git
synced 2026-09-30 21:42:55 +00:00
Merge pull request #403 from bodograumann/patch-1
Make sure there is no remnant runner config before configuring
This commit is contained in:
@@ -26,6 +26,7 @@ deregister_runner() {
|
||||
RUNNER_TOKEN=$(echo "${_TOKEN}" | jq -r .token)
|
||||
fi
|
||||
./config.sh remove --token "${RUNNER_TOKEN}"
|
||||
[[ -f "/actions-runner/.runner" ]] && rm -f /actions-runner/.runner
|
||||
exit
|
||||
}
|
||||
|
||||
@@ -202,6 +203,7 @@ if [[ -n "${_CONFIGURED_ACTIONS_RUNNER_FILES_DIR}" ]]; then
|
||||
else
|
||||
echo "Runner reusage is disabled"
|
||||
if [[ ${_DEBUG_ONLY} == "false" ]]; then
|
||||
[[ -f "/actions-runner/.runner" ]] && rm -f /actions-runner/.runner
|
||||
configure_runner
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user