File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ const fs = require('fs')
22const path = require ( 'path' )
33const cache = require ( '@actions/cache' )
44const core = require ( '@actions/core' )
5- const github = require ( '@actions/github' )
65const glob = require ( '@actions/glob' )
76const config = require ( './config' )
87const gc = require ( './gc' )
@@ -81,7 +80,7 @@ async function saveDiskCache(cacheConfig) {
8180 // We don't want to follow symlinks as it's extremely slow on macOS.
8281 { followSymbolicLinks : false }
8382 )
84- const key = `${ config . baseCacheKey } -${ cacheConfig . name } -${ hash } -${ github . context . runId } .${ github . context . runAttempt } `
83+ const key = `${ config . baseCacheKey } -${ cacheConfig . name } -${ hash } -${ process . env . GITHUB_RUN_ID } .${ process . env . GITHUB_RUN_ATTEMPT } `
8584 core . debug ( `Attempting to save ${ paths } cache to ${ key } ` )
8685 await cache . saveCache ( paths , key )
8786 core . info ( 'Successfully saved cache' )
You can’t perform that action at this time.
0 commit comments