2024-10-24 05:19:48 -07:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
|
|
|
|
|
const packageJson = require('../../../package.json')
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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 {
|
2024-11-14 03:22:03 -08:00
|
|
|
return `@actions/cache-${packageJson.version}`
|
2024-10-24 05:19:48 -07:00
|
|
|
}
|