[0.1.1] fix release creation bug
This commit is contained in:
parent
67f44de162
commit
8ec674e6e4
|
@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## Unreleased
|
||||
|
||||
## 0.1.1
|
||||
|
||||
### FIXED
|
||||
|
||||
- Fixed 500 error when creating a new release
|
||||
|
||||
## 0.1.0
|
||||
|
||||
This is the first release of `gitea-release`!
|
||||
|
|
|
@ -326,7 +326,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "gitea-release"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"byte-unit",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "gitea-release"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["Christine Dodrill <me@christine.website>"]
|
||||
edition = "2018"
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ pub(crate) async fn run(
|
|||
name: rm.name.or(Some(format!("Version {}", tag))).unwrap(),
|
||||
prerelease: rm.pre_release,
|
||||
tag_name: tag.clone(),
|
||||
target_commitish: tag,
|
||||
target_commitish: "HEAD".into(),
|
||||
};
|
||||
|
||||
let resp = cli
|
||||
|
@ -38,7 +38,7 @@ pub(crate) async fn run(
|
|||
.await?;
|
||||
|
||||
if !resp.status().is_success() {
|
||||
return Err(anyhow!("{:?}", resp.status()));
|
||||
return Err(anyhow!("{:?} -> {}", resp.status(), resp.text().await?));
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in New Issue