Skip to content

Commit 296c67d

Browse files
committed
Fixing how latest tag is retrieved for released and docs update
1 parent 9c3ca9d commit 296c67d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Sets env var for the next tag
3939
run: echo "NEXT_TAG=${GRID_VERSION}-${BUILD_DATE}" >> $GITHUB_ENV
4040
- name: Get latest tag
41-
run: echo "LATEST_TAG=$(git tag | tail -1)" >> $GITHUB_ENV
41+
run: echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
4242
- name: Display latest tag
4343
run: echo ${LATEST_TAG}
4444
- name: Update tag in docs and files

update_tag_in_docs_and_files.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
LATEST_TAG=$1
44
NEXT_TAG=$2
55
LATEST_DATE=$(echo ${LATEST_TAG} | sed 's/.*-//')
6-
NEXT_DATE=$4$(echo ${NEXT_TAG} | sed 's/.*-//')
6+
NEXT_DATE=$(echo ${NEXT_TAG} | sed 's/.*-//')
77

88
echo -e "\033[0;32m Updating tag displayed in docs and files...\033[0m"
99
echo -e "\033[0;32m LATEST_TAG -> ${LATEST_TAG}\033[0m"

0 commit comments

Comments
 (0)