stateinputprovider with pending test cases fix

This commit is contained in:
Sankalp Kotewar
2023-01-02 07:29:20 +00:00
committed by GitHub
parent 365406cb70
commit 5b7eeecaeb
9 changed files with 53 additions and 28 deletions
+1 -3
View File
@@ -28,9 +28,7 @@ async function saveImpl(stateProvider: IStateProvider): Promise<number | void> {
// If restore has stored a primary key in state, reuse that
// Else re-evaluate from inputs
const primaryKey =
stateProvider.getState(State.CachePrimaryKey) ||
core.getInput(Inputs.Key);
const primaryKey = stateProvider.getState(State.CachePrimaryKey);
if (!primaryKey) {
utils.logWarning(`Key is not specified.`);