mirror of
https://github.com/softprops/action-gh-release
synced 2026-10-02 01:31:31 +00:00
fix: replace existing release assets on Gitea (#816)
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
1 parent
f345337888
commit
e6c70a53cf
6 files changed
+315
-43
No files matched your search
+8
-1
@@ -52,7 +52,14 @@ export async function run(): Promise<void> {
|
||||
const currentAssets = rel.assets;
|
||||
|
||||
const uploadFile = async (path: string) => {
|
||||
const json = await upload(config, releaser, uploadUrl(rel.upload_url), path, currentAssets);
|
||||
const json = await upload(
|
||||
config,
|
||||
releaser,
|
||||
uploadUrl(rel.upload_url),
|
||||
path,
|
||||
currentAssets,
|
||||
rel.id,
|
||||
);
|
||||
return json ? (json.id as number) : undefined;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user