mirror of
https://github.com/actions/cache.git
synced 2026-09-30 16:48:53 +00:00
Basic implementation
This commit is contained in:
1 parent
6babf202a4
commit
69b8227b27
10 files changed
+320
-174
No files matched your search
+3
-1
@@ -27,7 +27,9 @@ async function run(): Promise<void> {
|
||||
const state = utils.getCacheState();
|
||||
|
||||
// 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) || core.getInput(Inputs.Key);
|
||||
|
||||
if (!primaryKey) {
|
||||
utils.logWarning(`Error retrieving key from state.`);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user