mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 11:12:07 +00:00
chore: update upload-build script
This commit is contained in:
parent
18c6994df6
commit
f6eedde976
1 changed files with 2 additions and 2 deletions
|
@ -49,14 +49,14 @@ fs.readdir(dist, async (err, files) => {
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
if (uploads.length > 0) {
|
for (const upload of uploads) {
|
||||||
await fetch(process.env.BUILD_WEBHOOK_URL, {
|
await fetch(process.env.BUILD_WEBHOOK_URL, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
uploads,
|
upload,
|
||||||
branchName: process.env.BRANCH_NAME,
|
branchName: process.env.BRANCH_NAME,
|
||||||
version: packageJson.version,
|
version: packageJson.version,
|
||||||
githubActor: process.env.GITHUB_ACTOR,
|
githubActor: process.env.GITHUB_ACTOR,
|
||||||
|
|
Loading…
Reference in a new issue