ae29a2751b
* `@actions/cache`: convert to an ESM module * Update the fixture to ESM syntax * Update the cache workflows * Bump `@actions/glob` to `0.6.1` * Fix awaiting in the cache unit tests * Fix a type issues in contracts * Export the `DownloadOptions`/`UploadOptions` like before * More cache test fixes * Make the cache units tests better * Add some more logging * Add retries to restore-cache.mjs
9 lines
281 B
TypeScript
9 lines
281 B
TypeScript
import {version} from './package-version.cjs'
|
|
|
|
/**
|
|
* Ensure that this User Agent String is used in all HTTP calls so that we can monitor telemetry between different versions of this package
|
|
*/
|
|
export function getUserAgentString(): string {
|
|
return `@actions/cache-${version}`
|
|
}
|