mirror of https://github.com/actions/cache.git
				
				
				
			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…
	
		Reference in New Issue