mirror of
				https://gitea.com/docker/build-push-action.git
				synced 2025-10-31 09:08:18 +07:00 
			
		
		
		
	Fix usage of deprecated substr (=> substring)
Signed-off-by: Mathieu Bergeron <mathieu.bergeron@nuecho.com>
This commit is contained in:
		
							parent
							
								
									fc7e9a2b38
								
							
						
					
					
						commit
						21692b9878
					
				| @ -18,9 +18,9 @@ export async function getImageID(): Promise<string | undefined> { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export async function getSecret(kvp: string): Promise<string> { | export async function getSecret(kvp: string): Promise<string> { | ||||||
|   const sepIndex = kvp.indexOf('='); |   const delimiterIndex = kvp.indexOf('='); | ||||||
|   const key = kvp.substr(0, sepIndex); |   const key = kvp.substring(0, delimiterIndex); | ||||||
|   const value = kvp.substr(sepIndex + 1); |   const value = kvp.substring(delimiterIndex + 1); | ||||||
|   const secretFile = context.tmpNameSync({ |   const secretFile = context.tmpNameSync({ | ||||||
|     tmpdir: context.tmpDir() |     tmpdir: context.tmpDir() | ||||||
|   }); |   }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user