cmd/release: exit if the tag already exists
This commit is contained in:
parent
7d09c0dee0
commit
235560fc71
|
@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## Unreleased
|
||||
|
||||
## 0.2.7
|
||||
|
||||
### FIXED
|
||||
|
||||
Exit if this version already exists
|
||||
|
||||
## 0.2.6
|
||||
|
||||
A fix from @kivikakk to remove the use of RefCells in markdown parsing
|
||||
|
|
|
@ -326,7 +326,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "gitea-release"
|
||||
version = "0.2.5"
|
||||
version = "0.2.7"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"byte-unit",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "gitea-release"
|
||||
version = "0.2.6"
|
||||
version = "0.2.7"
|
||||
authors = ["Christine Dodrill <me@christine.website>"]
|
||||
edition = "2018"
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ To use this as a drone plugin, add the following to your `.drone.yml`:
|
|||
|
||||
```yaml
|
||||
- name: auto-release
|
||||
image: xena/gitea-release:0.2.6
|
||||
image: xena/gitea-release:0.2.7
|
||||
settings:
|
||||
auth_username: cadey
|
||||
changelog_path: ./CHANGELOG.md
|
||||
|
|
4
TODO.org
4
TODO.org
|
@ -13,8 +13,8 @@
|
|||
CLOSED: [2020-05-31 Sun 12:50]
|
||||
** DONE upload
|
||||
CLOSED: [2020-05-30 Sat 15:15]
|
||||
|
||||
** TODO drone plugin
|
||||
** DONE drone plugin
|
||||
CLOSED: [2020-06-01 Mon 10:10]
|
||||
* Core Features
|
||||
** DONE Gitea API client
|
||||
CLOSED: [2020-05-30 Sat 10:52]
|
||||
|
|
|
@ -15,6 +15,10 @@ pub(crate) async fn run(
|
|||
if !git::has_tag(&repo, tag.clone())? {
|
||||
git::tag_version(&repo, tag.clone(), desc.clone())?;
|
||||
let _ = git::push_tags(&repo);
|
||||
} else
|
||||
/* The tag already exists */
|
||||
{
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let desc = changelog::read(fname, tag.clone())?;
|
||||
|
|
Loading…
Reference in New Issue