Skip to content

Commit

Permalink
Make sure there is no remnant runner config before configuring
Browse files Browse the repository at this point in the history
Closes #402
  • Loading branch information
bodograumann authored Oct 5, 2024
1 parent 706339b commit d4ee023
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ 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
configure_runner
fi
fi
Expand Down

0 comments on commit d4ee023

Please sign in to comment.