Skip to content

Commit

Permalink
use bash-compatible commands (instead of zsh)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson authored Nov 6, 2024
1 parent 151a06c commit bd09e7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
- name: Update dev version
run: |
git fetch --prune --unshallow --tags
tags=("${(@f)$(git tag --list --sort version:refname)}")
latest_tag=${tags[-1]}
IFS=$'\n' read -rd '' -a tags <<<"$(git tag --list --sort version:refname)"
latest_tag=${y[${#y[@]} - 1]}
old_version="${latest_tag:1}"
echo "Old Version: $old_version"
split_old_version=("${(@s:.:)old_version}")
IFS=$'.' read -rd '' -a split_old_version <<<"$old_version"
old_major_version=${split_old_version[0]}
old_minor_version=${split_old_version[1]}
old_patch_version=${split_old_version[2]}
Expand Down

0 comments on commit bd09e7c

Please sign in to comment.