docs: fix ci gather branches and tags (#106)

Co-authored-by: liukj <liukj@infinilabs.com>
This commit is contained in:
liukuijun666 2025-01-25 17:12:14 +08:00 committed by GitHub
parent e5bab8c52c
commit 52c1e4dbb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ jobs:
# Gather branches and tags, filter for semantic versions, sort, remove duplicates # Gather branches and tags, filter for semantic versions, sort, remove duplicates
VERSIONS=$(git for-each-ref refs/remotes/origin refs/tags --format="%(refname:short)" | \ 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 echo "VERSIONS=main,$VERSIONS" >> $GITHUB_ENV
- name: Install Hugo - name: Install Hugo