diff --git a/CHANGELOG.md b/CHANGELOG.md index 60ddb49..356a3a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.lock b/Cargo.lock index 0c7be05..ea4690c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -326,7 +326,7 @@ dependencies = [ [[package]] name = "gitea-release" -version = "0.2.5" +version = "0.2.7" dependencies = [ "anyhow", "byte-unit", diff --git a/Cargo.toml b/Cargo.toml index 8bf1b40..2184370 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gitea-release" -version = "0.2.6" +version = "0.2.7" authors = ["Christine Dodrill "] edition = "2018" diff --git a/README.md b/README.md index c0498fc..e6f59e5 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/TODO.org b/TODO.org index d03a939..d172494 100644 --- a/TODO.org +++ b/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] diff --git a/VERSION b/VERSION index 53a75d6..b003284 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.6 +0.2.7 diff --git a/src/cmd/release.rs b/src/cmd/release.rs index 5a22c52..05d20bf 100644 --- a/src/cmd/release.rs +++ b/src/cmd/release.rs @@ -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())?;