diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 9e3f1ce..2a7c246 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -52,7 +52,7 @@ jobs: # Gather branches and tags, filter for semantic versions, sort, remove duplicates VERSIONS=$(git for-each-ref refs/remotes/origin refs/tags --format="%(refname:short)" | \ - grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$" | sort -Vr | uniq | tr '\n' ',' | sed 's/,$//') + grep -E "v[0-9]+\.[0-9]+\.[0-9]+$" | awk -F'[v]' '{print "v"$2}' | sort -Vr | uniq | tr '\n' ',' | sed 's/,$//') echo "VERSIONS=main,$VERSIONS" >> $GITHUB_ENV - name: Install Hugo