docs: fix ci gather branches and tags (#106)
Co-authored-by: liukj <liukj@infinilabs.com>
This commit is contained in:
parent
e5bab8c52c
commit
52c1e4dbb7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue