Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
815e458579 | |||
6ecde844e8 | |||
487fcd9442 | |||
8b7a7c0162 | |||
6c87482fb9 |
@ -1,3 +1,10 @@
|
|||||||
|
## 0.1.11
|
||||||
|
|
||||||
|
- better error message on release create failed [#143](https://github.com/softprops/action-gh-release/pull/143)
|
||||||
|
## 0.1.10
|
||||||
|
|
||||||
|
- fixed error message formatting for file uploads
|
||||||
|
|
||||||
## 0.1.9
|
## 0.1.9
|
||||||
|
|
||||||
- add support for linking release to GitHub discussion [#136](https://github.com/softprops/action-gh-release/pull/136)
|
- add support for linking release to GitHub discussion [#136](https://github.com/softprops/action-gh-release/pull/136)
|
||||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "action-gh-release",
|
"name": "action-gh-release",
|
||||||
"version": "0.1.9",
|
"version": "0.1.11",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "GitHub Action for creating GitHub Releases",
|
"description": "GitHub Action for creating GitHub Releases",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
|
@ -167,7 +167,9 @@ export const upload = async (
|
|||||||
const json = await resp.json();
|
const json = await resp.json();
|
||||||
if (resp.status !== 201) {
|
if (resp.status !== 201) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"Failed to upload release asset ${name}. recieved status code ${resp.status}\n${json.message}\n${json.errors}"
|
`Failed to upload release asset ${name}. recieved status code ${
|
||||||
|
resp.status
|
||||||
|
}\n${json.message}\n${JSON.stringify(json.errors)}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
@ -289,7 +291,9 @@ export const release = async (
|
|||||||
console.log(
|
console.log(
|
||||||
`⚠️ GitHub release failed with status: ${
|
`⚠️ GitHub release failed with status: ${
|
||||||
error.status
|
error.status
|
||||||
}, retrying... (${maxRetries - 1} retries remaining)`
|
}\n${JSON.stringify(
|
||||||
|
error.response.data.errors
|
||||||
|
)}\nretrying... (${maxRetries - 1} retries remaining)`
|
||||||
);
|
);
|
||||||
return release(config, releaser, maxRetries - 1);
|
return release(config, releaser, maxRetries - 1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user