mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-29 15:52:42 +08:00 
			
		
		
		
	update message to be more general
This considers self-hosted runners
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -4710,7 +4710,7 @@ function run() { | ||||
|             // if architecture supplied but node-version is not | ||||
|             // if we don't throw a warning, the already installed x64 node will be used which is not probably what user meant. | ||||
|             if (arch && !version) { | ||||
|                 core.warning('`architecture` is provided but `node-version` is missing. This results in using an already installed x64 node which is not probably what you meant. To fix this, provide `architecture` in combination with `node-version`'); | ||||
|                 core.warning('`architecture` is provided but `node-version` is missing. In this configuration, the version/architecture of Node will not be changed. To fix this, provide `architecture` in combination with `node-version`'); | ||||
|             } | ||||
|             if (!arch) { | ||||
|                 arch = os.arch(); | ||||
|   | ||||
| @@ -22,7 +22,7 @@ export async function run() { | ||||
|     // if we don't throw a warning, the already installed x64 node will be used which is not probably what user meant. | ||||
|     if (arch && !version) { | ||||
|       core.warning( | ||||
|         '`architecture` is provided but `node-version` is missing. This results in using an already installed x64 node which is not probably what you meant. To fix this, provide `architecture` in combination with `node-version`' | ||||
|         '`architecture` is provided but `node-version` is missing. In this configuration, the version/architecture of Node will not be changed. To fix this, provide `architecture` in combination with `node-version`' | ||||
|       ); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user