Skip to content

Commit

Permalink
Merge pull request #40 from circleci/check-versions
Browse files Browse the repository at this point in the history
Ensure that CIRCLE_TAG and the version in project.clj agrees
  • Loading branch information
stig authored Mar 22, 2024
2 parents 0a4277c + be81abf commit 5001ada
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ jobs:
<<: *defaults
steps:
- checkout
- run: |
# Grab the numerical version of the tag
tag_version=${CIRCLE_TAG#v}
# Extract the version from the project.clj
project_version=$(awk 'NR==1 {print $3}' project.clj | sed -e 's/"//g')
# Fail if the tags do not match
test ${tag_version} = ${project_version} || exit 1
# Fail if the tag version is not in CHANGELOG
grep "^Version" CHANGELOG.md | grep "${tag_version}" || exit 1
- run: lein deps
- run: lein deploy

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 0.10.2 (March 22, 2024)
================================

Code identical to 0.10.0 or 0.10.1, this is just a fix to the automatic release workflow.

Version 0.10.1 (March 22, 2024)
================================

Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject circleci/analytics-clj "0.10.0"
(defproject circleci/analytics-clj "0.10.2"
:description "Idiomatic Clojure wrapper for the Segment.io 2.x Java client"
:url "https://github.com/circleci/analytics-clj"
:license {:name "Eclipse Public License"
Expand Down

0 comments on commit 5001ada

Please sign in to comment.