mirror of
https://github.com/actions/toolkit.git
synced 2026-08-21 00:00:16 +02:00
* actions/artifact preparation for download-artifact v4 * Test matrix strategy * Fix needs dependency * Improve list artifact test * Fix typo * Fix variables * Cleanup download-all interfaces * Fix tsc error * Simplify to just name instead of artifactName * Simplify to id instead of ArtifactId * PR cleanup
9 lines
301 B
TypeScript
9 lines
301 B
TypeScript
var 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/artifact-${packageJson.version}`
|
|
}
|