mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-11-18 17:41:06 +08:00
10 lines
402 B
TypeScript
10 lines
402 B
TypeScript
// 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 {
|
|
return `@actions/cache-${packageJson.version}`
|
|
}
|