Skip to content

Commit b5195bf

Browse files
committed
fix: remove runner first by actually calling remove instead of using
--replace. Ignore errors there.
1 parent 8f8b5a1 commit b5195bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ prepare_script "pre-script.sh" "ACTIONS_RUNNER_HOOK_JOB_STARTED" "${pre_job_scri
4545
prepare_script "post-script.sh" "ACTIONS_RUNNER_HOOK_JOB_COMPLETED" "${post_job_script}"
4646

4747
# Configuration; also replace existing runner with the same name.
48-
./config.sh --url "${github_repo_url}" --token "${runner_token}" --replace
48+
./config.sh remove || true
49+
./config.sh --url "${github_repo_url}" --token "${runner_token}"
4950

5051
trap cleanup EXIT
5152

0 commit comments

Comments
 (0)