We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4ee89c commit a0c07f4Copy full SHA for a0c07f4
.github/workflows/build-docs.yml
@@ -52,7 +52,7 @@ jobs:
52
53
# Gather branches and tags, filter for semantic versions, sort, remove duplicates
54
VERSIONS=$(git for-each-ref refs/remotes/origin refs/tags --format="%(refname:short)" | \
55
- grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$" | sort -Vr | uniq | tr '\n' ',' | sed 's/,$//')
+ grep -E "^[0-9]+\.[0-9]+\.[0-9]+$" | awk -F'[v]' '{print "v"$2}' | sort -Vr | uniq | tr '\n' ',' | sed 's/,$//')
56
echo "VERSIONS=main,$VERSIONS" >> $GITHUB_ENV
57
58
- name: Install Hugo
0 commit comments