mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 10:44:19 +00:00
Update github.ts
This commit is contained in:
parent
2c0ffd1d02
commit
c5f4ac71b7
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.replace(' ','.') == 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