mirror of
https://github.com/actions/runner.git
synced 2025-12-13 18:33:52 +00:00
Fix broken run-helper update syntax and run-helper not updating on restart (#2050)
* Fix broken syntax in update wait for loop * Update run-helper after each restart, not only at first
This commit is contained in:
@@ -35,7 +35,7 @@ elif [[ $returnCode == 2 ]]; then
|
||||
elif [[ $returnCode == 3 ]]; then
|
||||
# Wait for 30 seconds or for flag file to exists for the runner update process finish
|
||||
echo "Runner listener exit because of updating, re-launch runner after successful update"
|
||||
for i in {0..30} do
|
||||
for i in {0..30}; do
|
||||
if test -f "$updateFile"; then
|
||||
echo "Update finished successfully."
|
||||
rm "$updateFile"
|
||||
@@ -47,7 +47,7 @@ elif [[ $returnCode == 3 ]]; then
|
||||
elif [[ $returnCode == 4 ]]; then
|
||||
# Wait for 30 seconds or for flag file to exists for the ephemeral runner update process finish
|
||||
echo "Runner listener exit because of updating, re-launch runner after successful update"
|
||||
for i in {0..30} do
|
||||
for i in {0..30}; do
|
||||
if test -f "$updateFile"; then
|
||||
echo "Update finished successfully."
|
||||
rm "$updateFile"
|
||||
|
||||
Reference in New Issue
Block a user