mirror of https://github.com/actions/cache.git
				
				
				
			Updated input for save
This commit is contained in:
		
							parent
							
								
									be3863f944
								
							
						
					
					
						commit
						70576fc9a4
					
				| 
						 | 
					@ -47298,7 +47298,8 @@ function run() {
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            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(constants_1.State.CachePrimaryKey);
 | 
					            //const primaryKey = core.getState(State.CachePrimaryKey);
 | 
				
			||||||
 | 
					            const primaryKey = core.getInput(constants_1.Inputs.Key);
 | 
				
			||||||
            if (!primaryKey) {
 | 
					            if (!primaryKey) {
 | 
				
			||||||
                utils.logWarning(`Error retrieving key from state.`);
 | 
					                utils.logWarning(`Error retrieving key from state.`);
 | 
				
			||||||
                return;
 | 
					                return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -27,7 +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 = core.getState(State.CachePrimaryKey);
 | 
				
			||||||
 | 
					        const primaryKey = 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