ci: move prev version and tag message after switch

This commit is contained in:
Dmitriy Pleshevskiy 2025-02-03 10:40:00 +03:00
parent 48391fc789
commit 95d44e4939
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -29,11 +29,11 @@ jobs:
- name: Commit build
run: |
previous_version=$(git describe --tags --abbrev=0 2>/dev/null || echo '')
current_version=v$(cat package.json | grep version | grep -o -E '([0-9]+\.){2}[0-9]+')
tag_message=`git log --pretty='format:%s' $previous_version..`
git switch build
previous_version=$(git describe --tags --abbrev=0 2>/dev/null || echo '')
tag_message=`git log --pretty='format:%s' $previous_version..`
shopt -s extglob
shopt -s dotglob