mirror of
				https://github.com/docker/login-action.git
				synced 2025-10-31 18:20:10 +08:00 
			
		
		
		
	Allow use of this action in non-linux platforms with warning (fixes #47)
This commit is contained in:
		
							parent
							
								
									4b206288bd
								
							
						
					
					
						commit
						fa97036308
					
				| @ -7,7 +7,7 @@ import * as stateHelper from './state-helper'; | |||||||
| export async function run(): Promise<void> { | export async function run(): Promise<void> { | ||||||
|   try { |   try { | ||||||
|     if (os.platform() !== 'linux') { |     if (os.platform() !== 'linux') { | ||||||
|       throw new Error('Only supported on linux platform'); |       core.warning('This action is intented for linux platform. You may experience problems.'); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     const {registry, username, password, logout} = getInputs(); |     const {registry, username, password, logout} = getInputs(); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 The Hatsune Daishi
						The Hatsune Daishi