Skip to content

Commit beaa6fe

Browse files
committed
Add note about how to trigger runner updates
1 parent 6ed5d6c commit beaa6fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Runner.Listener/SelfUpdater.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ private async Task DownloadLatestRunner(CancellationToken token)
185185
#if DEBUG
186186
// Much of the update process (targetVersion, archive) is server-side, this is a way to control it from here for testing specific update scenarios
187187
// Add files like 'runner_v2.281.2.tar.gz' or 'runner_v2.283.0.zip' depending on your platform in your runner root folder
188-
// This functionality should not be in the release build to prevent tampering with updates
188+
// Note that runners still need to be behind the server's runner version in order to receive an 'AgentRefreshMessage' and trigger this update
189+
// This should not be in the release build to prevent tampering with updates
189190
var isMockUpdate = StringUtil.ConvertToBoolean(Environment.GetEnvironmentVariable("GITHUB_ACTIONS_RUNNER_IS_MOCK_UPDATE"));
190191
if (isMockUpdate)
191192
{

0 commit comments

Comments
 (0)