Skip to content

Commit

Permalink
fix(release): fix the last tag retrieval for alpha releases (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun authored Aug 19, 2023
1 parent 89ef0e2 commit b6b2da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Calculate the next release
run: |
suffix="alpha"
last_tag="$(git describe --abbrev=0 --tags `git rev-list --tags --max-count=1`)"
last_tag="$(git tag --sort=committerdate | tail -1)"
if [[ "${last_tag}" = *"-${suffix}"* ]]; then
# increment the alpha version
# e.g. v0.22.1-alpha.12 -> v0.22.1-alpha.13
Expand Down

0 comments on commit b6b2da5

Please sign in to comment.