forked from Solo-Web-Works/Projects-Portfolio
Make asset upload resilient (warn on duplicate, don't fail)
This commit is contained in:
1 parent
c98e46437e
commit
93af230406
1 file changed
+3
-2
@@ -151,6 +151,7 @@ jobs:
|
|||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
-H "Content-Type: application/zip" \
|
-H "Content-Type: application/zip" \
|
||||||
--data-binary "@${zip_path}" \
|
--data-binary "@${zip_path}" \
|
||||||
"${API}/repos/${REPO}/releases/${release_id}/assets?name=${asset_name}"
|
"${API}/repos/${REPO}/releases/${release_id}/assets?name=${asset_name}" \
|
||||||
echo "Uploaded Gitea asset: ${asset_name}"
|
|| echo "::warning::Asset upload failed (asset may already exist); continuing."
|
||||||
|
echo "Gitea asset step complete: ${asset_name}"
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user