@@ -7,13 +7,17 @@ const repoBaseUrl = `${process.env.INPUT_REPO_URL}/${libName}/${version}`;
|
||||
const packageJsonUrls = [];
|
||||
|
||||
const sendFile = async (path, data) => {
|
||||
await fetch(`${repoBaseUrl}/${path}`, {
|
||||
let r = await fetch(`${repoBaseUrl}/${path}`, {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
Authorization: `Basic ${process.env.INPUT_REPO_USER}:${process.env.INPUT_REPO_PASS}`,
|
||||
},
|
||||
body: data,
|
||||
});
|
||||
|
||||
if (r.status != 200) {
|
||||
throw `FAILED TO UPLOAD TO ${repoBaseUrl}/${path}`;
|
||||
}
|
||||
};
|
||||
|
||||
// Get system utils
|
||||
|
||||
Reference in New Issue
Block a user