Improve deprecation message: list actions running on node20, suggest checking for updates

This commit is contained in:
Salman Muin Kayser Chishti
2026-02-11 13:43:46 +00:00
parent af8c4aa59d
commit f19c4ee70e

View File

@@ -740,7 +740,7 @@ namespace GitHub.Runner.Worker
if (context.Global.DeprecatedNode20Actions?.Count > 0)
{
var actionsList = string.Join(", ", context.Global.DeprecatedNode20Actions);
var deprecationMessage = $"Node.js 20 actions are deprecated. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2025. Please update the following actions to use Node.js 24: {actionsList}. For more information see: {Constants.Runner.NodeMigration.Node20DeprecationUrl}";
var deprecationMessage = $"Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: {actionsList}. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2025. Please check if updated versions of these actions are available that support Node.js 24. For more information see: {Constants.Runner.NodeMigration.Node20DeprecationUrl}";
context.Warning(deprecationMessage);
}
}