How to use the @actions/cache.restoreCache function in @actions/cache

To help you get started, we’ve selected a few @actions/cache examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newrelic / newrelic-ruby-agent / .github / actions / build-ruby / index.js View on Github external
async function restoreBundleFromCache(rubyVersion) {
  core.startGroup(`Restore Bundle from Cache`)
 
  const key = bundleCacheKey(rubyVersion)
  core.info(`restore using ${key}`)
  await cache.restoreCache(bundleCachePaths(rubyVersion), key, [key])
  
  core.endGroup()
}
github newrelic / newrelic-ruby-agent / .github / actions / build-ruby / index.js View on Github external
async function restoreRubyFromCache(rubyVersion) {
  core.startGroup(`Restore Ruby from Cache`)
 
  const key = rubyCacheKey(rubyVersion)
  await cache.restoreCache(rubyCachePaths(rubyVersion), key, [key])
  
  core.endGroup()
}

@actions/cache

Actions cache lib

MIT
Latest version published 8 months ago

Package Health Score

88 / 100
Full package analysis