fix: support space in file name (#446)
* support space in file name * Update github.ts
This commit is contained in:
parent
0979303f02
commit
998623f0c3
@ -149,7 +149,7 @@ export const upload = async (
|
|||||||
const [owner, repo] = config.github_repository.split("/");
|
const [owner, repo] = config.github_repository.split("/");
|
||||||
const { name, size, mime, data: body } = asset(path);
|
const { name, size, mime, data: body } = asset(path);
|
||||||
const currentAsset = currentAssets.find(
|
const currentAsset = currentAssets.find(
|
||||||
({ name: currentName }) => currentName == name
|
({ name: currentName }) => currentName == name.replace(' ','.')
|
||||||
);
|
);
|
||||||
if (currentAsset) {
|
if (currentAsset) {
|
||||||
console.log(`♻️ Deleting previously uploaded asset ${name}...`);
|
console.log(`♻️ Deleting previously uploaded asset ${name}...`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user