mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 02:44:19 +00:00
fmt and build
This commit is contained in:
parent
998623f0c3
commit
40bf9ec7aa
2 changed files with 3 additions and 3 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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.replace(' ','.')
|
({ name: currentName }) => currentName == name.replace(" ", ".")
|
||||||
);
|
);
|
||||||
if (currentAsset) {
|
if (currentAsset) {
|
||||||
console.log(`♻️ Deleting previously uploaded asset ${name}...`);
|
console.log(`♻️ Deleting previously uploaded asset ${name}...`);
|
||||||
|
@ -310,7 +310,7 @@ export const release = async (
|
||||||
return release.data;
|
return release.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// presume a race with competing metrix runs
|
// presume a race with competing metrix runs
|
||||||
console.log(error.response.data)
|
console.log(error.response.data);
|
||||||
console.log(
|
console.log(
|
||||||
`⚠️ GitHub release failed with status: ${
|
`⚠️ GitHub release failed with status: ${
|
||||||
error.status
|
error.status
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue