[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
|
## Unreleased
|
||||||
|
|
||||||
|
## 0.1.1
|
||||||
|
|
||||||
|
### FIXED
|
||||||
|
|
||||||
|
- Fixed 500 error when creating a new release
|
||||||
|
|
||||||
## 0.1.0
|
## 0.1.0
|
||||||
|
|
||||||
This is the first release of `gitea-release`!
|
This is the first release of `gitea-release`!
|
||||||
|
|
|
@ -326,7 +326,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gitea-release"
|
name = "gitea-release"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"byte-unit",
|
"byte-unit",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "gitea-release"
|
name = "gitea-release"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
authors = ["Christine Dodrill <me@christine.website>"]
|
authors = ["Christine Dodrill <me@christine.website>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ pub(crate) async fn run(
|
||||||
name: rm.name.or(Some(format!("Version {}", tag))).unwrap(),
|
name: rm.name.or(Some(format!("Version {}", tag))).unwrap(),
|
||||||
prerelease: rm.pre_release,
|
prerelease: rm.pre_release,
|
||||||
tag_name: tag.clone(),
|
tag_name: tag.clone(),
|
||||||
target_commitish: tag,
|
target_commitish: "HEAD".into(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let resp = cli
|
let resp = cli
|
||||||
|
@ -38,7 +38,7 @@ pub(crate) async fn run(
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
if !resp.status().is_success() {
|
if !resp.status().is_success() {
|
||||||
return Err(anyhow!("{:?}", resp.status()));
|
return Err(anyhow!("{:?} -> {}", resp.status(), resp.text().await?));
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue