Skip to content

Commit 47ce625

Browse files
authored
Merge pull request #403 from bodograumann/patch-1
Make sure there is no remnant runner config before configuring
2 parents 706339b + c6f70dd commit 47ce625

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ deregister_runner() {
2626
RUNNER_TOKEN=$(echo "${_TOKEN}" | jq -r .token)
2727
fi
2828
./config.sh remove --token "${RUNNER_TOKEN}"
29+
[[ -f "/actions-runner/.runner" ]] && rm -f /actions-runner/.runner
2930
exit
3031
}
3132

@@ -202,6 +203,7 @@ if [[ -n "${_CONFIGURED_ACTIONS_RUNNER_FILES_DIR}" ]]; then
202203
else
203204
echo "Runner reusage is disabled"
204205
if [[ ${_DEBUG_ONLY} == "false" ]]; then
206+
[[ -f "/actions-runner/.runner" ]] && rm -f /actions-runner/.runner
205207
configure_runner
206208
fi
207209
fi

0 commit comments

Comments
 (0)