mirror of
				https://gitea.com/docker/setup-buildx-action.git
				synced 2025-10-30 08:38:06 +07:00 
			
		
		
		
	Merge pull request #429 from crazy-max/fix-keep-state
fix keep-state not being respected
This commit is contained in:
		
						commit
						e468171a9d
					
				
							
								
								
									
										1
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -621,6 +621,7 @@ jobs: | |||||||
|         uses: ./ |         uses: ./ | ||||||
|         with: |         with: | ||||||
|           name: foo |           name: foo | ||||||
|  |           keep-state: true | ||||||
| 
 | 
 | ||||||
|   keep-state-error: |   keep-state-error: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -9,7 +9,7 @@ export const certsDir = process.env['STATE_certsDir'] || ''; | |||||||
| export const tmpDockerContext = process.env['STATE_tmpDockerContext'] || ''; | export const tmpDockerContext = process.env['STATE_tmpDockerContext'] || ''; | ||||||
| export const cleanup = /true/i.test(process.env['STATE_cleanup'] || ''); | export const cleanup = /true/i.test(process.env['STATE_cleanup'] || ''); | ||||||
| export const buildxIsDefaultBuilder = /true/i.test(process.env['STATE_buildxIsDefaultBuilder'] || ''); | 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) { | export function setDebug(debug: string) { | ||||||
|   core.saveState('isDebug', debug); |   core.saveState('isDebug', debug); | ||||||
| @ -47,6 +47,6 @@ export function setBuildxIsDefaultBuilder(buildxIsDefaultBuilder: boolean) { | |||||||
|   core.saveState('buildxIsDefaultBuilder', buildxIsDefaultBuilder); |   core.saveState('buildxIsDefaultBuilder', buildxIsDefaultBuilder); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export function setKeepState(retain: boolean) { | export function setKeepState(keepState: boolean) { | ||||||
|   core.saveState('keepState', retain); |   core.saveState('keepState', keepState); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user