Skip to content

Commit

Permalink
Apply suggestions from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
bodograumann committed Oct 5, 2024
1 parent d4ee023 commit c6f70dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -202,9 +203,7 @@ if [[ -n "${_CONFIGURED_ACTIONS_RUNNER_FILES_DIR}" ]]; then
else
echo "Runner reusage is disabled"
if [[ ${_DEBUG_ONLY} == "false" ]]; then
# Make sure there is no remnant runner config, that would break registration
# Cf. https://github.com/myoung34/docker-github-actions-runner/issues/402
rm -f /actions-runner/.runner
[[ -f "/actions-runner/.runner" ]] && rm -f /actions-runner/.runner
configure_runner
fi
fi
Expand Down

0 comments on commit c6f70dd

Please sign in to comment.