Commit 2cac6b3 1 parent 7a06e98 commit 2cac6b3 Copy full SHA for 2cac6b3
File tree 3 files changed +1
-4
lines changed
3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import * as cache from "@actions/cache";
4
4
import { getCacheDirectory , State } from "./cache-utils" ;
5
5
6
6
async function saveCache ( ) {
7
- const enableCache = JSON . parse ( core . getState ( State . CacheEnabledKey ) ) ;
7
+ const enableCache = core . getBooleanInput ( "cache" ) ;
8
8
9
9
if ( ! enableCache ) {
10
10
core . info ( `Caching disabled, not saving cache.` ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import fs from "fs/promises";
9
9
export const State = {
10
10
CachePrimaryKey : "primary_key" ,
11
11
CacheMatchedKey : "matched_key" ,
12
- CacheEnabledKey : "cache_enabled" ,
13
12
} ;
14
13
15
14
export async function getCacheDirectory ( ) {
Original file line number Diff line number Diff line change 9
9
import { downloadScarb } from "./download" ;
10
10
import { getOsTriplet } from "./platform" ;
11
11
import { restoreCache } from "./cache-restore" ;
12
- import { State } from "./cache-utils" ;
13
12
14
13
export default async function main ( ) {
15
14
try {
@@ -50,7 +49,6 @@ export default async function main() {
50
49
51
50
core . setOutput ( "scarb-version" , await getFullVersionFromScarb ( ) ) ;
52
51
53
- core . saveState ( State . CacheEnabledKey , enableCache ) ;
54
52
if ( enableCache ) {
55
53
await restoreCache ( scarbLockPathInput ) . catch ( ( e ) => {
56
54
core . error (
You can’t perform that action at this time.
0 commit comments