mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 10:44:19 +00:00
fix: support space in file name (#446)
* support space in file name * Update github.ts
This commit is contained in:
parent
0979303f02
commit
998623f0c3
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ export const upload = async (
|
|||
const [owner, repo] = config.github_repository.split("/");
|
||||
const { name, size, mime, data: body } = asset(path);
|
||||
const currentAsset = currentAssets.find(
|
||||
({ name: currentName }) => currentName == name
|
||||
({ name: currentName }) => currentName == name.replace(' ','.')
|
||||
);
|
||||
if (currentAsset) {
|
||||
console.log(`♻️ Deleting previously uploaded asset ${name}...`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue