Skip to content

Commit 172ea72

Browse files
committed
Getting latest tag for Docker images
[deploy]
1 parent 025f575 commit 172ea72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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 describe --tags --abbrev=0)" >> $GITHUB_ENV
41+
run: echo "LATEST_TAG=$(git tag --sort=-version:refname | grep "^[^selenium]" | head -n 1)" >> $GITHUB_ENV
4242
- name: Display latest tag
4343
run: echo ${LATEST_TAG}
4444
- name: Update tag in docs and files

0 commit comments

Comments
 (0)