2023-08-22 10:06:40 -07:00
|
|
|
import * as packageJson from '../../../package.json'
|
2023-08-17 14:40:33 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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/artifact-${packageJson.version}`
|
|
|
|
|
}
|