How to use the @actions/cache.saveCache 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 saveRubyToCache(rubyVersion) {
  core.startGroup(`Save Ruby to Cache`)

  const key = rubyCacheKey(rubyVersion)
  await cache.saveCache(rubyCachePaths(rubyVersion), key)
  
  core.endGroup()
}
github newrelic / newrelic-ruby-agent / .github / actions / build-ruby / index.js View on Github external
async function saveBundleToCache(rubyVersion) {
  core.startGroup(`Save Bundle to Cache`)

  const key = bundleCacheKey(rubyVersion)
  await cache.saveCache(bundleCachePaths(rubyVersion), key)
  
  core.endGroup()
}

@actions/cache

Actions cache lib

MIT
Latest version published 18 days ago

Package Health Score

89 / 100
Full package analysis