Skip to content

Commit

Permalink
Fixing how latest tag is retrieved for released and docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Nov 27, 2020
1 parent 9c3ca9d commit 296c67d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Sets env var for the next tag
run: echo "NEXT_TAG=${GRID_VERSION}-${BUILD_DATE}" >> $GITHUB_ENV
- name: Get latest tag
run: echo "LATEST_TAG=$(git tag | tail -1)" >> $GITHUB_ENV
run: echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Display latest tag
run: echo ${LATEST_TAG}
- name: Update tag in docs and files
Expand Down
2 changes: 1 addition & 1 deletion update_tag_in_docs_and_files.sh
Expand Up @@ -3,7 +3,7 @@
LATEST_TAG=$1
NEXT_TAG=$2
LATEST_DATE=$(echo ${LATEST_TAG} | sed 's/.*-//')
NEXT_DATE=$4$(echo ${NEXT_TAG} | sed 's/.*-//')
NEXT_DATE=$(echo ${NEXT_TAG} | sed 's/.*-//')

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

0 comments on commit 296c67d

Please sign in to comment.