diff --git a/dist/index.js b/dist/index.js index a7ef3ed..5a84ffe 100644 --- a/dist/index.js +++ b/dist/index.js @@ -28269,7 +28269,9 @@ const execInteractive = async (command, args = []) => }); const download = async (url, path) => { - const res = await fetch(url); + const res = await fetch(url, { + headers: { 'user-agent': 'setup-dvc/3.0.0' } + }); if (res.status !== 200) { throw new Error(res.statusText); } diff --git a/package.json b/package.json index 5d6ad92..829caa0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dvcorg/setup-dvc", - "version": "2.0.0", + "version": "3.0.0", "author": { "name": "DVC", "url": "https://github.com/treeverse/setup-dvc" diff --git a/src/utils.js b/src/utils.js index 3b680ea..9a2d818 100644 --- a/src/utils.js +++ b/src/utils.js @@ -39,7 +39,9 @@ export const execInteractive = async (command, args = []) => }); export const download = async (url, path) => { - const res = await fetch(url); + const res = await fetch(url, { + headers: { 'user-agent': 'setup-dvc/3.0.0' } + }); if (res.status !== 200) { throw new Error(res.statusText); }