Skip to content

Commit d4ee023

Browse files
authored
Make sure there is no remnant runner config before configuring
Closes #402
1 parent 706339b commit d4ee023

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ if [[ -n "${_CONFIGURED_ACTIONS_RUNNER_FILES_DIR}" ]]; then
202202
else
203203
echo "Runner reusage is disabled"
204204
if [[ ${_DEBUG_ONLY} == "false" ]]; then
205+
# Make sure there is no remnant runner config, that would break registration
206+
# Cf. https://github.com/myoung34/docker-github-actions-runner/issues/402
207+
rm -f /actions-runner/.runner
205208
configure_runner
206209
fi
207210
fi

0 commit comments

Comments
 (0)