mirror of
				https://github.com/docker/setup-buildx-action.git
				synced 2025-10-31 19:24:20 +08:00 
			
		
		
		
	fix keep-state not being respected
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									18ce135bb5
								
							
						
					
					
						commit
						b145473295
					
				
							
								
								
									
										1
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -621,6 +621,7 @@ jobs: | ||||
|         uses: ./ | ||||
|         with: | ||||
|           name: foo | ||||
|           keep-state: true | ||||
| 
 | ||||
|   keep-state-error: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
| @ -9,7 +9,7 @@ export const certsDir = process.env['STATE_certsDir'] || ''; | ||||
| export const tmpDockerContext = process.env['STATE_tmpDockerContext'] || ''; | ||||
| export const cleanup = /true/i.test(process.env['STATE_cleanup'] || ''); | ||||
| export const buildxIsDefaultBuilder = /true/i.test(process.env['STATE_buildxIsDefaultBuilder'] || ''); | ||||
| export const keepState = !!process.env['STATE_keepState']; | ||||
| export const keepState = /true/i.test(process.env['STATE_keepState'] || ''); | ||||
| 
 | ||||
| export function setDebug(debug: string) { | ||||
|   core.saveState('isDebug', debug); | ||||
| @ -47,6 +47,6 @@ export function setBuildxIsDefaultBuilder(buildxIsDefaultBuilder: boolean) { | ||||
|   core.saveState('buildxIsDefaultBuilder', buildxIsDefaultBuilder); | ||||
| } | ||||
| 
 | ||||
| export function setKeepState(retain: boolean) { | ||||
|   core.saveState('keepState', retain); | ||||
| export function setKeepState(keepState: boolean) { | ||||
|   core.saveState('keepState', keepState); | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 CrazyMax
						CrazyMax