stateinputprovider with pending test cases fix

This commit is contained in:
Sankalp Kotewar authored and GitHub committed 2023-01-02 07:29:20 +00:00
1 parent 365406cb70
commit 5b7eeecaeb
9 files changed
+53 -28

No files matched your search

+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.`);