Clean github runner's temporary _work derectory between runs

This commit is contained in:
Mikhail f. Shiryaev 2024-04-30 16:36:59 +02:00
parent b74ce036fa
commit ee49e237da
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -312,6 +312,8 @@ while true; do
no_terminating_metadata || terminate_on_event
check_spot_instance_is_old && terminate_and_exit
check_proceed_spot_termination force
# There were some failures to start the Job because of trash in _work
rm -rf _work
echo "Going to configure runner"
sudo -u ubuntu ./config.sh --url $RUNNER_URL --token "$(get_runner_token)" \