We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79c516 commit e6d21f7Copy full SHA for e6d21f7
.github/workflows/docker-build.yml
@@ -27,7 +27,7 @@ jobs:
27
id: get-tag
28
run: |
29
git fetch --tags
30
- LATEST_TAG=$(git tag --list 'v[0-9]*.[0-9]*.[0-9]*' --sort=-version:refname | head -1)
+ LATEST_TAG=$(git tag | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\?$' | sort -V | tail -1)
31
if [ -z "$LATEST_TAG" ]; then
32
echo "No version tags found on branch ${{ inputs.branch }}"
33
exit 1
0 commit comments