mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 15:24:02 +00:00 
			
		
		
		
	Updated save primary key fetch
This commit is contained in:
		
							parent
							
								
									97382073c8
								
							
						
					
					
						commit
						af961fd366
					
				@ -27,8 +27,8 @@ async function run(): Promise<void> {
 | 
				
			|||||||
        const state = utils.getCacheState();
 | 
					        const state = utils.getCacheState();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Inputs are re-evaluted before the post action, so we want the original key used for restore
 | 
					        // Inputs are re-evaluted before the post action, so we want the original key used for restore
 | 
				
			||||||
        //const primaryKey = core.getState(State.CachePrimaryKey);
 | 
					        const primaryKey =
 | 
				
			||||||
        const primaryKey = core.getInput(Inputs.Key);
 | 
					            core.getState(State.CachePrimaryKey) || core.getInput(Inputs.Key);
 | 
				
			||||||
        if (!primaryKey) {
 | 
					        if (!primaryKey) {
 | 
				
			||||||
            utils.logWarning(`Error retrieving key from state.`);
 | 
					            utils.logWarning(`Error retrieving key from state.`);
 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user