Merge pull request #403 from bodograumann/patch-1

Make sure there is no remnant runner config before configuring
This commit is contained in:
myoung34
2024-10-06 14:06:40 -05:00
committed by GitHub
+2
View File
@@ -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